joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ce6a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov esi, eax
cmp dword [ebp + 0xc], ebx
je 0x1001ce91
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce05
add esp, 0xc
jmp 0x1001ce94
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
cmp eax, ebx
je 0x1001cf62
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x1001cf53
mov eax, dword [ebp - 8]
cmp eax, 4
jne 0x1001cf00
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x1001cf53
call fcn.1001ca5e
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x1001cefc
push eax
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001cf64
cmp eax, 1
je 0x1001cf19
cmp eax, 2
je 0x1001cf19
cmp eax, 6
je 0x1001cf19
cmp eax, 7
je 0x1001cf19
cmp eax, 3
jne 0x1001cf53
push dword [ebp - 4]
call fcn.1009960a
mov ebx, eax
pop ecx
test ebx, ebx
je 0x1001cf53
lea eax, [ebp - 4]
push eax
push ebx
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call edi
test eax, eax
jne 0x1001cf4c
call fcn.1001ca5e
mov eax, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 4], ebx
jmp 0x1001ceed
push ebx
call fcn.100994b3
pop ecx
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x1001cf62
push eax
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001cf69
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
je 0x1001cf8e
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce05
add esp, 0xc
mov edi, eax
jmp 0x1001cf91
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x1001cfe4
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001cfd8
cmp dword [ebp + 0xc], 4
jne 0x1001cfd8
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001cfd8
cmp edi, dword [ebp + 8]
je 0x1001cfd4
push edi
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001cfe6
cmp edi, dword [ebp + 8]
je 0x1001cfe4
push edi
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001cfeb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
je 0x1001d010
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce05
add esp, 0xc
mov edi, eax
jmp 0x1001d013
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x1001d06e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d062
cmp dword [ebp - 4], 3
jne 0x1001d062
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0xc]
jb 0x1001d062
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d062
cmp edi, dword [ebp + 8]
je 0x1001d05e
push edi
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d070
cmp edi, dword [ebp + 8]
je 0x1001d06e
push edi
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d075
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001d09a
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce05
add esp, 0xc
mov ebx, eax
jmp 0x1001d09d
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x1001d113
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call esi
test eax, eax
jne 0x1001d107
cmp dword [ebp - 4], 3
jne 0x1001d107
push dword [ebp + 0xc]
call fcn.1009960a
mov edi, eax
pop ecx
test edi, edi
je 0x1001d107
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 0
push dword [ebp + 0x10]
push ebx
call esi
test eax, eax
jne 0x1001d100
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [ecx], eax
cmp ebx, dword [ebp + 8]
je 0x1001d0fc
push ebx
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d115
push edi
call fcn.100994b3
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001d113
push ebx
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001d11a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [ebp + 0xc], ebx
je 0x1001d13f
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce05
add esp, 0xc
mov edi, eax
jmp 0x1001d142
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x1001d1ae
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d1a2
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1001d177
cmp eax, 2
je 0x1001d177
cmp eax, 6
je 0x1001d177
cmp eax, 7
jne 0x1001d1a2
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp + 0xc]
jb 0x1001d1a2
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0x14]
push ebx
push ebx
push dword [ebp + 0x10]
push edi
call esi
test eax, eax
jne 0x1001d1a2
cmp edi, dword [ebp + 8]
je 0x1001d19e
push edi
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d1b0
cmp edi, dword [ebp + 8]
je 0x1001d1ae
push edi
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d1b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001d1da
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce05
add esp, 0xc
mov ebx, eax
jmp 0x1001d1dd
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x1001d26c
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call esi
test eax, eax
jne 0x1001d260
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1001d216
cmp eax, 2
je 0x1001d216
cmp eax, 6
je 0x1001d216
cmp eax, 7
jne 0x1001d260
push dword [ebp + 0xc]
call fcn.1009960a
mov edi, eax
pop ecx
test edi, edi
je 0x1001d260
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 0
push dword [ebp + 0x10]
push ebx
call esi
test eax, eax
jne 0x1001d259
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x1001d249
mov ecx, dword [ebp + 0xc]
mov dword [eax], ecx
cmp ebx, dword [ebp + 8]
je 0x1001d255
push ebx
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d26e
push edi
call fcn.100994b3
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001d26c
push ebx
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1001d307
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001d32c
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce05
add esp, 0xc
mov ebx, eax
jmp 0x1001d32f
mov ebx, dword [ebp + 8]
cmp ebx, esi
je 0x1001d3d7
lea eax, [ebp + 0xc]
push eax
push esi
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push ebx
call esi
test eax, eax
jne 0x1001d3cb
mov eax, dword [ebp - 4]
cmp eax, 1
je 0x1001d368
cmp eax, 2
je 0x1001d368
cmp eax, 6
je 0x1001d368
cmp eax, 7
jne 0x1001d3cb
mov eax, dword [ebp + 0xc]
inc eax
push eax
call fcn.10063948
mov edi, eax
mov eax, dword [ebp + 0xc]
inc eax
push eax
push 0
push edi
call fcn.10096fc0
add esp, 0x10
lea eax, [ebp + 0xc]
push eax
push edi
push 0
push 0
push dword [ebp + 0x10]
push ebx
call esi
push edi
test eax, eax
jne 0x1001d3b7
mov ecx, dword [ebp + 0x14]
call fcn.100cc880
cmp ebx, dword [ebp + 8]
je 0x1001d3ac
push ebx
call fcn.1001ce56
pop ecx
push edi
call fcn.10063953
pop ecx
mov al, 1
jmp 0x1001d3d9
call fcn.10063953
mov ecx, dword [ebp + 0x14]
mov dword [esp], 0x101e4ae4
call fcn.100cc880
cmp ebx, dword [ebp + 8]
je 0x1001d3d7
push ebx
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001d3de
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
push edi
mov esi, eax
je 0x1001d400
push 0x20006
push dword [ebp + 8]
push ebx
call fcn.1001ce29
add esp, 0xc
mov edi, eax
jmp 0x1001d402
mov edi, ebx
test edi, edi
je 0x1001d45e
mov eax, dword [esi]
cmp eax, 4
jne 0x1001d414
push eax
add esi, eax
push esi
push eax
jmp 0x1001d434
cmp eax, 1
je 0x1001d42d
cmp eax, 2
je 0x1001d42d
cmp eax, 6
je 0x1001d42d
cmp eax, 7
je 0x1001d42d
cmp eax, 3
jne 0x1001d453
push dword [esi + 8]
push dword [esi + 4]
push eax
push 0
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d453
cmp edi, ebx
je 0x1001d44f
push edi
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d460
cmp edi, ebx
je 0x1001d45e
push edi
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebp
ret

Function at 0x1001d464
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d483
push 0x20006
push dword [ebp + 8]
push edi
call fcn.1001ce29
add esp, 0xc
mov esi, eax
jmp 0x1001d485
mov esi, edi
test esi, esi
je 0x1001d4bb
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d4b0
cmp esi, edi
je 0x1001d4ac
push esi
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d4bd
cmp esi, edi
je 0x1001d4bb
push esi
call fcn.1001ce56
pop ecx
xor al, al
pop esi
pop ebp
ret
Function at 0x1001d4c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d4df
push 0x20006
push dword [ebp + 8]
push edi
call fcn.1001ce29
add esp, 0xc
mov esi, eax
jmp 0x1001d4e1
mov esi, edi
test esi, esi
je 0x1001d517
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 3
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d50c
cmp esi, edi
je 0x1001d508
push esi
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d519
cmp esi, edi
je 0x1001d517
push esi
call fcn.1001ce56
pop ecx
xor al, al
pop esi
pop ebp
ret

Function at 0x1001d51c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d53b
push 0x20006
push dword [ebp + 8]
push edi
call fcn.1001ce29
add esp, 0xc
mov esi, eax
jmp 0x1001d53d
mov esi, edi
test esi, esi
je 0x1001d57e
push dword [ebp + 0x10]
call fcn.100975a6
pop ecx
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x1001d573
cmp esi, edi
je 0x1001d56f
push esi
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d580
cmp esi, edi
je 0x1001d57e
push esi
call fcn.1001ce56
pop ecx
xor al, al
pop esi
pop ebp
ret
Function at 0x1001d5c8
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
je 0x1001d5ec
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce05
add esp, 0xc
jmp 0x1001d5ef
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp + 0xc], eax
cmp dword [ebp + 0x14], edi
jbe 0x1001d618
push dword [ebx + esi*4]
call fcn.100975a6
push eax
push 0x20
push dword [ebx + esi*4]
call fcn.10096fc0
add esp, 0x10
inc esi
cmp esi, dword [ebp + 0x14]
jb 0x1001d5fc
cmp dword [ebp + 0xc], edi
je 0x1001d6c8
push edi
push edi
push edi
push edi
push edi
push edi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x14]
push eax
push edi
push edi
push edi
push dword [ebp + 0xc]
mov dword [ebp + 0x14], edi
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001d6b9
cmp dword [ebp + 0x14], edi
jbe 0x1001d6b9
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10063948
mov esi, eax
pop ecx
cmp esi, edi
je 0x1001d6b9
cmp dword [ebp + 0x14], edi
jbe 0x1001d69f
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
mov ebx, dword [ebp + 0xc]
inc eax
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1001d697
mov eax, dword [ebp - 8]
push esi
push dword [eax]
call fcn.10097511
add dword [ebp - 8], 4
pop ecx
pop ecx
inc edi
cmp edi, dword [ebp + 0x14]
jb 0x1001d671
jmp 0x1001d6a2
mov ebx, dword [ebp + 0xc]
push esi
call fcn.10063953
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001d6b5
push ebx
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d6ca
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp + 8]
je 0x1001d6c8
push eax
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001d76e
cmp dword [ebp - 8], ebx
je 0x1001d763
inc dword [ebp - 4]
push dword [ebp - 4]
call fcn.1009960a
mov esi, eax
pop ecx
cmp esi, ebx
je 0x1001d76e
push dword [ebp - 4]
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1001d767
push 0x2001f
push esi
push dword [ebp + 8]
call fcn.1001ce05
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x1001d767
push edi
call fcn.1001d6cf
pop ecx
push edi
test al, al
je 0x1001d775
call fcn.1001ce56
pop ecx
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x1001d767
dec dword [ebp - 8]
jne 0x1001d70e
push esi
call fcn.100994b3
pop ecx
mov al, 1
jmp 0x1001d770
push esi
call fcn.100994b3
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret
call fcn.1001ce56
push esi
call fcn.100994b3
pop ecx
jmp 0x1001d76d
Function at 0x1001d783
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push esi
je 0x1001d7a2
push 0x2001f
push dword [ebp + 8]
push edi
call fcn.1001ce05
add esp, 0xc
mov esi, eax
jmp 0x1001d7a4
mov esi, edi
test esi, esi
je 0x1001d7fd
cmp dword [ebp + 0xc], 0
je 0x1001d7cb
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x1001d7f2
cmp esi, edi
je 0x1001d7c7
push esi
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001d7ff
push esi
call fcn.1001d6cf
pop ecx
test al, al
je 0x1001d7f2
cmp esi, edi
je 0x1001d7e1
push esi
call fcn.1001ce56
pop ecx
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
neg eax
sbb eax, eax
inc eax
jmp 0x1001d7ff
cmp esi, edi
je 0x1001d7fd
push esi
call fcn.1001ce56
pop ecx
xor al, al
pop esi
pop ebp
ret

Function at 0x1001df94
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor esi, esi
push edi
cmp dword [ebp + 0xc], esi
je 0x1001dfb9
push 0x20019
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1001ce05
add esp, 0xc
mov ebx, eax
jmp 0x1001dfbc
mov ebx, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
call fcn.100d1fa0
cmp ebx, esi
je 0x1001e05e
push esi
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0xc]
push eax
push esi
push esi
push esi
push ebx
mov dword [ebp + 0xc], esi
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001e052
cmp dword [ebp + 0xc], esi
jbe 0x1001e052
mov eax, dword [ebp - 4]
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10063948
mov edi, eax
pop ecx
cmp edi, esi
je 0x1001e052
cmp dword [ebp + 0xc], esi
jbe 0x1001e03b
mov eax, dword [ebp - 4]
inc eax
push eax
push edi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x1001e035
mov ecx, dword [ebp + 0x10]
push edi
call fcn.1000575c
inc esi
cmp esi, dword [ebp + 0xc]
jb 0x1001e01a
push edi
call fcn.10063953
pop ecx
cmp ebx, dword [ebp + 8]
je 0x1001e04e
push ebx
call fcn.1001ce56
pop ecx
mov al, 1
jmp 0x1001e060
cmp ebx, dword [ebp + 8]
je 0x1001e05e
push ebx
call fcn.1001ce56
pop ecx
xor al, al
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1001fab5
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
lea eax, [ebp - 4]
mov edi, ecx
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x1001faeb
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x1001faea
push dword [edi + 0xc]
call esi
push eax
call fcn.10067bb2
pop esi
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 4]
pop edi
leave
ret
Function at 0x10023331
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
mov eax, 0x2001f
cmp dword [ebp + 0x14], esi
je 0x1002334a
mov eax, 0x2011f
lea ecx, [ebp - 4]
push ecx
push eax
push esi
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10023394
cmp dword [ebp + 0x10], esi
je 0x10023376
push dword [ebp + 0x10]
call fcn.100975a6
pop ecx
lea eax, [eax + eax + 2]
jmp 0x10023378
xor eax, eax
push eax
push dword [ebp + 0x10]
push 1
push esi
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
leave
ret 0x10

Function at 0x10023399
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 0x14], 0
mov eax, 0x2001f
je 0x100233b1
mov eax, 0x2011f
lea ecx, [ebp - 4]
push ecx
push eax
push 0
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100233e9
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret 0x10

Function at 0x100233ed
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
xor edi, edi
push reloc.OLEAUT32.dll_SysReAllocString
xor ebx, ebx
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x10023476
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp - 8], edi
push dword [ebp - 4]
mov dword [ebp + 8], edi
call esi
mov eax, dword [ebp + 8]
cmp eax, 2
jb 0x1002346c
inc eax
inc eax
mov dword [ebp + 8], eax
xor ecx, ecx
push 2
shr eax, 1
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10063948
mov ebx, eax
pop ecx
cmp ebx, edi
je 0x1002346c
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 8

Function at 0x1002347e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x100234cf
and dword [ebp - 0xc], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push dword [ebp + 0xc]
mov dword [ebp + 8], 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
leave
ret 8
Function at 0x100242db
Capabilities:
Write file on windows

Disassembly:
push 0x10
mov eax, 0x101cdb61
call fcn.10096eb3
mov esi, ecx
push 1
lea eax, [esi + 4]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100da8b0
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xc]
test eax, eax
je 0x10024339
cmp dword [ebp + 8], edi
je 0x10024339
push 2
push edi
push edi
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call fcn.100975a6
pop ecx
add eax, eax
push eax
push dword [ebp + 8]
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_WriteFile]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.100da910
call fcn.10096f8b
ret 4
Function at 0x10027dd2
Capabilities:
Write file on windows

Disassembly:
push 8
mov eax, 0x101ce6c6
call fcn.10096eb3
mov edi, dword [ebp + 8]
mov eax, dword [edi]
xor ebx, ebx
mov dword [ebp - 0x14], ebx
cmp dword [eax - 8], ebx
jne 0x10027df5
xor edi, edi
inc edi
jmp 0x10027ed3
mov eax, dword [0x1020eb00]
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
lea eax, [ebp + 0xc]
push eax
cmp dword [ebp + 0xc], ebx
je 0x10027e14
call fcn.10027c5b
mov byte [ebp - 4], 1
jmp 0x10027e1d
call fcn.10027ca9
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 8]
call fcn.100cc790
mov byte [ebp - 4], bl
lea ecx, [ebp + 0xc]
call fcn.100cc600
mov esi, dword [ebp + 8]
push ebx
push ebx
push 2
call fcn.100f5a10
push eax
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x10027e81
push str.MailText.dat
push str.SaveMailText_create_file__s__fail
push str.MailInfo
push 4
push 0x10266f5c
call fcn.10024f90
add esp, 0x14
or dword [ebp - 4], esi
lea ecx, [ebp + 8]
call fcn.100cc600
mov edi, dword [ebp - 0x14]
jmp 0x10027ed3
mov eax, dword [edi]
push ebx
mov dword [ebp - 0x10], ebx
mov eax, dword [eax - 8]
lea ecx, [ebp - 0x10]
push ecx
add eax, eax
push eax
push ebx
mov ecx, edi
call fcn.100cd2d0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [ebp - 0x10]
mov edi, eax
push edi
push str.SaveMailText_after_write_file__bRet__d__dwWrite__lu_
push str.MailInfo
push 4
push 0x10266f5c
call fcn.10024f90
add esp, 0x18
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.100cc600
mov eax, edi
call fcn.10096f8b
ret 8