joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001f968
Capabilities:
Delete registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003c230
push 0xffffffffffffffff
push 0x1006fdb9
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
xor eax, eax
push 0xffe
mov word [ebp], ax
lea eax, [ebp + 2]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.1003c260
call fcn.100374fc
push edx
push eax
push 0x100760bc
lea eax, [ebp]
push 0x800
push eax
call fcn.100374fc
add esp, 0x20
mov edi, 0x2001f
push edi
push 0x100760c8
mov esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
lea ecx, [ebp - 0x20]
call fcn.100374fc
mov dword [ebp - 0x10], eax
cmp eax, 2
jne 0x1001fa13
push str._setSystemWebJavaEnabled:_OK_regkey_does_not_exists
call fcn.100374fc
pop ecx
jmp 0x1001fa35
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str._setSystemWebJavaEnabled:_open_JavaDeploy_subkey
call fcn.100010b1
push dword [ebp - 0x10]
call fcn.1001f556
pop ecx
pop ecx
cmp eax, ebx
je 0x1001fb11
push 0x100761cc
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [ebp - 0x10], eax
cmp eax, 2
jne 0x1001fa4e
mov dword [ebp - 0x10], ebx
push ecx
mov ecx, esp
mov dword [ebp - 0x14], esp
push str._setSystemWebJavaEnabled:_delete_WebDeployJava
call fcn.100010b1
push dword [ebp - 0x10]
call fcn.1001f556
pop ecx
pop ecx
cmp eax, ebx
je 0x1001fb11
push edi
lea eax, [ebp]
push eax
push 0x10076248
push 0x10076284
push esi
call fcn.1001f24b
add esp, 0x14
push 0x100762c8
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], eax
call fcn.100010b1
mov eax, dword [ebp - 0x14]
push ecx
mov ecx, esp
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], esp
mov dword [ecx], eax
cmp eax, ebx
je 0x1001fab5
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push dword [ebp - 0x10]
call fcn.1001f556
push edi
push 0x100762bc
push 0x10076320
push 0x10076358
push esi
call fcn.1001f24b
add esp, 0x1c
push str.___Create_HKLM_webjavaswitch_status_enabled
lea ecx, [ebp - 0x14]
mov edi, eax
call fcn.100012bc
mov esi, dword [ebp - 0x14]
push ecx
mov eax, esp
mov dword [ebp - 0x24], esp
mov dword [eax], esi
cmp esi, ebx
je 0x1001fafe
lea eax, [esi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push edi
call fcn.1001f556
pop ecx
pop ecx
cmp esi, ebx
je 0x1001fb11
mov ecx, esi
call fcn.10001238
lea ecx, [ebp - 0x20]
call fcn.100159e6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003c09c
add ebp, 0x1004
leave
ret
Function at 0x1001fcb9
Capabilities:
Get common file path

Disassembly:
push 4
mov eax, 0x1006fe29
call fcn.1003c0ab
mov esi, dword [ebp + 8]
xor eax, eax
mov word [esi], ax
call fcn.100309ee
test eax, eax
je 0x1001fd04
call fcn.100374fc
test eax, eax
je 0x1001fcf6
call fcn.100374fc
test eax, eax
je 0x1001fcf6
push 0x800
push esi
call dword [sym.imp.kernel32.dll_GetSystemWow64DirectoryW]
jmp 0x1001fd10
push 0x800
push esi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
jmp 0x1001fd10
push 0x800
push esi
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
push str.__get_system_dir__
lea ecx, [ebp + 8]
mov edi, eax
call fcn.1000b23a
and dword [ebp - 4], 0
push esi
lea ecx, [ebp - 0x10]
call fcn.100010b1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.1000132e
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1001fd4c
call fcn.10001238
push 0x10076910
lea ecx, [ebp - 0x10]
call fcn.1000b23a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.1000132e
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 0
test ecx, ecx
je 0x1001fd79
call fcn.10001238
mov esi, dword [ebp + 8]
push ecx
mov eax, esp
mov dword [ebp - 0x10], esp
mov dword [eax], esi
test esi, esi
je 0x1001fd92
lea eax, [esi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
test edi, edi
setne al
movzx eax, al
push eax
call fcn.1001f69e
pop ecx
pop ecx
test esi, esi
je 0x1001fdad
mov ecx, esi
call fcn.10001238
mov eax, edi
call fcn.1003c183
ret
Function at 0x10022c6b
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0x64
mov eax, 0x100704a8
call fcn.1003c0ab
lea eax, [ebp - 0x1c]
push eax
call fcn.100374fc
pop ecx
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x10022c9a
lea eax, [esi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push 0x1007a9a4
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.100010b1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1000132e
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10022ccb
call fcn.10001238
push 0x1007a634
lea ecx, [ebp - 0x10]
call fcn.100010b1
push 0x1007a6b4
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp ecx, ebx
je 0x10022d09
call fcn.10001238
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000132e
push 0x1007a77c
lea ecx, [ebp - 0x18]
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp ecx, ebx
je 0x10022d42
call fcn.10001238
push 0x1007aa40
lea ecx, [ebp - 0x18]
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x10022d6b
call fcn.10001238
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.1003c260
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov dword [ebp - 0x70], 0x44
stosd dword es:[edi], eax
cmp esi, ebx
je 0x10022d94
mov edx, dword [esi]
jmp 0x10022d96
xor edx, edx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10022da1
mov ecx, dword [eax]
jmp 0x10022da3
xor ecx, ecx
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x10022dae
mov eax, dword [edi]
jmp 0x10022db0
xor eax, eax
lea esi, [ebp - 0x2c]
push esi
lea esi, [ebp - 0x70]
push esi
push edx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x10022e03
push 0x2bf20
push dword [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10022df3
push 1
push dword [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_TerminateProcess]
call fcn.1001b64e
push dword [ebp - 0x28]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x10022e0f
call fcn.10001238
cmp edi, ebx
je 0x10022e1a
mov ecx, edi
call fcn.10001238
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x10022e26
call fcn.10001238
call fcn.1003c183
ret
Function at 0x10022e2c
Capabilities:
Create process on windows
Terminate process

Disassembly:
push 0x64
mov eax, 0x100704fb
call fcn.1003c0ab
lea eax, [ebp - 0x1c]
push eax
call fcn.100374fc
pop ecx
mov esi, dword [ebp - 0x1c]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x14], esi
cmp esi, ebx
je 0x10022e5b
lea eax, [esi + 8]
push eax
call dword [sym.imp.kernel32.dll_InterlockedIncrement]
push 0x1007aa24
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.100010b1
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.1000132e
mov ecx, dword [ebp - 0x10]
mov byte [ebp - 4], 1
cmp ecx, ebx
je 0x10022e8c
call fcn.10001238
push 0x1007a80c
lea ecx, [ebp - 0x10]
call fcn.100010b1
push 0x1007a9bc
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp ecx, ebx
je 0x10022eca
call fcn.10001238
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
call fcn.1000132e
push 0x1007aa3c
lea ecx, [ebp - 0x18]
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 5
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
mov byte [ebp - 4], 3
cmp ecx, ebx
je 0x10022f03
call fcn.10001238
push str.__wait__fix__shortcut__silent
lea ecx, [ebp - 0x18]
call fcn.100010b1
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 6
call fcn.1000132e
mov ecx, dword [ebp - 0x18]
cmp ecx, ebx
je 0x10022f2c
call fcn.10001238
push 0x40
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.1003c260
xor eax, eax
mov dword [ebp - 0x2c], ebx
lea edi, [ebp - 0x28]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
mov dword [ebp - 0x70], 0x44
stosd dword es:[edi], eax
cmp esi, ebx
je 0x10022f55
mov edx, dword [esi]
jmp 0x10022f57
xor edx, edx
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10022f62
mov ecx, dword [eax]
jmp 0x10022f64
xor ecx, ecx
mov edi, dword [ebp - 0x14]
cmp edi, ebx
je 0x10022f6f
mov eax, dword [edi]
jmp 0x10022f71
xor eax, eax
lea esi, [ebp - 0x2c]
push esi
lea esi, [ebp - 0x70]
push esi
push edx
push ebx
push 0x8000000
push ebx
push ebx
push ebx
push ecx
push eax
call dword [sym.imp.kernel32.dll_CreateProcessW]
test eax, eax
je 0x10022fc4
push 0x2bf20
push dword [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10022fb4
push 1
push dword [ebp - 0x2c]
call dword [sym.imp.kernel32.dll_TerminateProcess]
call fcn.1001b64e
push dword [ebp - 0x28]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
push dword [ebp - 0x2c]
call esi
mov ecx, dword [ebp - 0x10]
cmp ecx, ebx
je 0x10022fd0
call fcn.10001238
cmp edi, ebx
je 0x10022fdb
mov ecx, edi
call fcn.10001238
mov ecx, dword [ebp - 0x1c]
cmp ecx, ebx
je 0x10022fe7
call fcn.10001238
call fcn.1003c183
ret
Function at 0x10022fed
Capabilities:
Delete registry value

Disassembly:
push 0x10
mov eax, 0x1007051e
call fcn.1003c0ab
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
push 0x2001f
push str.SOFTWAREOracleJavaFX
xor ebx, ebx
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1c]
mov dword [ebp - 4], esi
inc ebx
call fcn.100374fc
test eax, eax
je 0x10023037
lea ecx, [ebp - 0x1c]
mov esi, ebx
call fcn.100159e6
mov eax, esi
call fcn.1003c183
ret
push str.Disabled
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
cmp edi, esi
je 0x1002306a
cmp edi, 2
je 0x1002306a
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.cleanupJavaFXDisabledEntry_error
call fcn.100010b1
push edi
call fcn.1001f556
pop ecx
pop ecx
xor ebx, ebx
lea ecx, [ebp - 0x1c]
call fcn.100159e6
jmp 0x10023025
Function at 0x10024c63
Capabilities:
Delete registry value

Disassembly:
push 0x28
mov eax, 0x10070875
call fcn.1003c0ab
xor esi, esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], esi
mov ebx, 0x20019
push ebx
push 0x1007d7bc
mov edi, reloc.OLEAUT32.dll_SysReAllocString
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.100374fc
test eax, eax
jne 0x10024d67
push ebx
push 0x1007d870
push dword [ebp - 0x28]
lea ecx, [ebp - 0x1c]
call fcn.100374fc
test eax, eax
jne 0x10024d57
lea eax, [ebp - 0x1c]
push 0x1007d884
push eax
call fcn.1001b9f7
pop ecx
pop ecx
test eax, eax
je 0x10024d38
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
push 0x20006
push 0x1007d8a0
push edi
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.100374fc
test eax, eax
je 0x10024d08
push str.DeleteEmptyDeploymentKeysInHLKM:_failed_to_open_JRE_key
call fcn.100374fc
jmp 0x10024d2f
push 0x1007d968
push dword [ebp - 0x34]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push ecx
mov ecx, esp
mov dword [ebp - 0x10], esp
push str.DeleteEmptyDeploymentKeysInHLKM:_Remove_BrowserJavaVersion_value
mov esi, eax
call fcn.100010b1
push esi
call fcn.1001f556
pop ecx
pop ecx
lea ecx, [ebp - 0x34]
call fcn.100159e6
lea eax, [ebp - 0x1c]
push str.Java_Web_Start
push eax
call fcn.1001b9f7
lea eax, [ebp - 0x1c]
push str.Java_Web_Start_Caps
push eax
call fcn.1001b9f7
add esp, 0x10
lea eax, [ebp - 0x28]
push 0x1007da5c
push eax
call fcn.1001b9f7
pop ecx
pop ecx
lea ecx, [ebp - 0x1c]
call fcn.100159e6
lea ecx, [ebp - 0x28]
call fcn.100159e6
call fcn.1003c183
ret
Function at 0x10025a83
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1004]
mov eax, 0x1004
call fcn.1003c230
push 0xffffffffffffffff
push 0x100709f1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x1000], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x100c]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x2c], esi
push 0xffe
mov word [ebp], ax
lea eax, [ebp + 2]
push esi
push eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], ebx
call fcn.1003c260
add esp, 0xc
push 0x10075dfa
mov ecx, ebx
call fcn.1000b23a
xor eax, eax
inc eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
push str.GetLatestJavawsVersion__:
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], 0x800
call fcn.100374fc
pop ecx
cmp dword [ebp + 0x1010], esi
je 0x10025b30
mov edi, 0x20219
push str.___checking_32_bit
jmp 0x10025b3a
mov edi, 0x20119
push str.___checking_64_bit
call fcn.100374fc
pop ecx
push edi
push 0x10077ae8
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.100374fc
cmp eax, esi
je 0x10025b97
push str.___failed_to_open_SOFTWAREJavaSoftJava_Web_Start
call fcn.100374fc
pop ecx
lea ecx, [ebp - 0x28]
call fcn.100159e6
lea ecx, [ebp - 0x28]
call fcn.100159e6
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x1000]
xor ecx, ebp
call fcn.1003c09c
add ebp, 0x1004
leave
ret
lea eax, [ebp - 0x38]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x10025b62
push str.___Processing_key:
lea ecx, [ebp - 0x10]
call fcn.1000b23a
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.100010b1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.1000132e
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 2
cmp ecx, esi
je 0x10025bf6
call fcn.10001238
mov dword [ebp - 0x14], esi
mov edi, dword [ebp - 0x10]
cmp edi, esi
je 0x10025c01
mov eax, dword [edi]
jmp 0x10025c03
xor eax, eax
push eax
call fcn.100374fc
lea eax, [ebp + 0x1010]
push eax
lea eax, [ebp]
push eax
call fcn.10022208
add esp, 0xc
test eax, eax
jne 0x10025c53
lea eax, [ebp + 0x1010]
push eax
lea eax, [ebp]
push eax
call fcn.10021ef5
pop ecx
pop ecx
test eax, eax
jne 0x10025c53
push 0x10077bb0
call fcn.100374fc
lea eax, [ebp]
push eax
call fcn.100374fc
pop ecx
xor eax, eax
pop ecx
mov word [ebp], ax
jmp 0x10025c7a
mov eax, dword [ebx]
cmp eax, esi
je 0x10025c5d
mov eax, dword [eax]
jmp 0x10025c5f
xor eax, eax
push eax
lea eax, [ebp]
push eax
call fcn.100374fc
pop ecx
pop ecx
test eax, eax
jle 0x10025c7a
lea eax, [ebp]
push eax
mov ecx, ebx
call fcn.100012bc
inc dword [ebp - 0x18]
mov dword [ebp - 0x1c], 0x800
mov byte [ebp - 4], 1
cmp edi, esi
je 0x10025b97
mov ecx, edi
call fcn.10001238
mov dword [ebp - 0x10], esi
jmp 0x10025b97
Function at 0x100292a2
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1b4]
sub esp, 0x234
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x1b0], eax
mov eax, dword [ebp + 0x1bc]
push esi
mov esi, dword [ebp + 0x1c0]
push 0x1007ee58
push eax
lea eax, [ebp - 0x7c]
push eax
call fcn.100374fc
add esp, 0xc
test eax, eax
jne 0x1002940b
push esi
call fcn.100374fc
pop ecx
test eax, eax
jne 0x1002940b
push edi
xor edi, edi
inc edi
jmp 0x100293de
cmp dword [ebp - 0x78], 0x4034b50
jne 0x10029401
cmp word [ebp - 0x70], 0
jne 0x10029401
push dword [ebp - 0x7c]
movzx eax, word [ebp - 0x5e]
movzx esi, word [ebp - 0x5e]
push eax
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.100374fc
add esp, 0x10
cmp eax, esi
jne 0x10029401
xor eax, eax
mov word [ebp + esi*2 - 0x58], ax
lea eax, [ebp - 0x58]
push eax
call fcn.100374fc
cmp word [ebp - 0x5c], 0
pop ecx
jbe 0x10029366
movzx eax, word [ebp - 0x5c]
push edi
push eax
push dword [ebp - 0x7c]
call fcn.10041526
add esp, 0xc
test eax, eax
jne 0x10029401
movzx eax, word [ebp - 0x5e]
cmp word [ebp + eax*2 - 0x5a], 0x2f
je 0x100293de
push 0x1007ee60
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.100374fc
add esp, 0xc
test eax, eax
jne 0x10029401
mov eax, dword [ebp - 0x62]
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100374fc
push dword [ebp - 0x7c]
mov esi, eax
push dword [ebp - 0x62]
push edi
push esi
call fcn.100374fc
add esp, 0x14
cmp eax, dword [ebp - 0x62]
jne 0x100293fa
push dword [ebp - 0x80]
push dword [ebp - 0x62]
push edi
push esi
call fcn.1003e7a9
add esp, 0x10
push esi
cmp eax, dword [ebp - 0x62]
jne 0x100293fb
call fcn.100374fc
push dword [ebp - 0x80]
call fcn.1003e5de
pop ecx
pop ecx
push dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push edi
push 0x1e
push eax
call fcn.100374fc
add esp, 0x10
cmp eax, edi
je 0x100292fc
jmp 0x10029401
push esi
call fcn.100374fc
pop ecx
push dword [ebp - 0x7c]
call fcn.1003e5de
pop ecx
pop edi
mov ecx, dword [ebp + 0x1b0]
xor ecx, ebp
pop esi
call fcn.1003c09c
add ebp, 0x1b4
leave
ret
Function at 0x10029421
Capabilities:
Create directory
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x21e0]
mov eax, 0x2260
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x21dc], eax
mov eax, dword [ebp + 0x21e8]
push ebx
push esi
push edi
mov dword [ebp - 0x80], eax
xor eax, eax
mov esi, 0xffe
xor edi, edi
push esi
mov word [ebp + 0x11dc], ax
lea eax, [ebp + 0x11de]
push edi
push eax
mov dword [ebp - 0x78], edi
call fcn.1003c260
xor eax, eax
push esi
mov word [ebp + 0x1dc], ax
lea eax, [ebp + 0x1de]
push edi
push eax
call fcn.1003c260
mov esi, 0x800
push str.SOFTWAREMozillaMozilla_Firefox
lea eax, [ebp + 0x11dc]
push esi
push eax
mov dword [ebp - 0x7c], esi
call fcn.100374fc
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
add esp, 0x24
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x11dc]
push eax
mov ebx, reloc.OLEAUT32.dll_SysReAllocString
push ebx
call edi
test eax, eax
je 0x100294c5
xor eax, eax
jmp 0x100295bf
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1dc]
push eax
push 0
push 0
push 0x1007eeac
push dword [ebp - 0x78]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
test eax, eax
je 0x100294f1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x100294be
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp + 0x1dc]
push eax
lea eax, [ebp + 0x11dc]
push str.SOFTWAREMozillaMozilla_Firefox_sMain
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x11dc]
push eax
push ebx
call edi
test eax, eax
jne 0x100294be
mov ebx, dword [ebp - 0x80]
lea eax, [ebp - 0x7c]
push eax
push ebx
push 0
push 0
push 0x1007eecc
push dword [ebp - 0x78]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x78]
test eax, eax
jne 0x100294e9
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10029554
sub eax, edx
sar eax, 1
cmp word [ebx + eax*2 - 2], 0x5c
je 0x10029580
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x1002956e
mov esi, 0x1007ef44
movsd dword es:[edi], dword [esi]
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10029583
push 5
pop ecx
mov esi, 0x1007ef48
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x74]
push eax
push ebx
movsw word es:[edi], word [esi]
call dword [sym.imp.kernel32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x100295d7
push 0
push ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x100294be
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x21dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x21e0
leave
ret
push eax
call dword [sym.imp.kernel32.dll_FindClose]
test byte [ebp - 0x74], 0x10
jmp 0x100295b6
Function at 0x100296bc
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x21d8]
mov eax, 0x2258
call fcn.1003c230
mov eax, dword [0x10095dec]
xor eax, ebp
mov dword [ebp + 0x21d4], eax
push ebx
mov ebx, dword [ebp + 0x21e0]
push esi
push 0x250
lea eax, [ebp - 0x7c]
push 0
push eax
call fcn.1003c260
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push ebx
lea eax, [ebp + 0x1d4]
push str._s.
push eax
call esi
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x1d4]
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x80], eax
cmp eax, 0xffffffff
je 0x10029829
mov ecx, 0x1007efa0
lea eax, [ebp - 0x50]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10029756
test dx, dx
je 0x10029752
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10029756
add eax, 4
add ecx, 4
test dx, dx
jne 0x10029730
xor eax, eax
jmp 0x1002975b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100297f1
mov ecx, 0x1007efa4
lea eax, [ebp - 0x50]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10029791
test dx, dx
je 0x1002978d
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10029791
add eax, 4
add ecx, 4
test dx, dx
jne 0x1002976b
xor eax, eax
jmp 0x10029796
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x100297f1
lea eax, [ebp - 0x50]
push eax
push ebx
lea eax, [ebp + 0x11d4]
push 0x1007efac
push eax
call esi
mov eax, dword [ebp - 0x7c]
add esp, 0x10
and eax, 0xfffffffe
push eax
lea eax, [ebp + 0x11d4]
push eax
call dword [sym.imp.kernel32.dll_SetFileAttributesW]
test byte [ebp - 0x7c], 0x10
lea eax, [ebp + 0x11d4]
push eax
jne 0x100297eb
call dword [sym.imp.kernel32.dll_DeleteFileW]
test eax, eax
jne 0x100297f1
push eax
lea eax, [ebp + 0x11d4]
push eax
call fcn.10018a42
pop ecx
jmp 0x100297f0
call fcn.100296bc
pop ecx
lea eax, [ebp - 0x7c]
push eax
push dword [ebp - 0x80]
call dword [sym.imp.kernel32.dll_FindNextFileW]
test eax, eax
jne 0x10029728
push dword [ebp - 0x80]
call dword [sym.imp.kernel32.dll_FindClose]
push ebx
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
mov esi, eax
test esi, esi
jne 0x10029825
push eax
push ebx
call fcn.10018a42
pop ecx
pop ecx
mov eax, esi
jmp 0x1002982c
xor eax, eax
inc eax
mov ecx, dword [ebp + 0x21d4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1003c09c
add ebp, 0x21d8
leave
ret