joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13427760
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xffffffffffffffff
push 0x134c8808
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
call fcn.134298e0
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor ebx, ebx
mov dword [esp + 0x78], ebx
call edi
mov esi, eax
mov eax, dword [0x13511b00]
cmp eax, ebx
je 0x134277b7
push str.DealEmailDataAfterStop__1
push 0x134fd048
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x10
mov eax, dword [0x135130a8]
cmp eax, ebx
je 0x134277cd
cmp esi, eax
jb 0x134277cd
add eax, 0xea60
cmp eax, esi
jae 0x134277d4
call edi
mov dword [0x135130a8], eax
call fcn.13400e80
mov ebp, eax
mov ecx, ebp
call fcn.13404860
mov esi, eax
mov eax, dword [0x13511b00]
cmp eax, ebx
je 0x13427806
push str.DealEmailDataAfterStop__2
push 0x134fd048
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x10
cmp esi, ebx
je 0x13427855
cmp word [0x13513050], bx
jne 0x13427855
mov ecx, 0x15
xor eax, eax
lea edi, [esp + 0x1c]
mov dword [esp + 0x18], ebx
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
lea ecx, [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x28]
push 0x28
push edx
mov dword [esp + 0x20], ebx
call fcn.13411240
add esp, 0x10
lea eax, [esp + 0x18]
push eax
call sym.winncap3.dll_SetUserName
mov ecx, dword [esp + 0x10]
push ecx
call fcn.13427660
cmp dword [0x13511b00], ebx
je 0x13427876
push str.DealEmailDataAfterStop__3
push 0x134fd048
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x10
cmp esi, ebx
mov ebx, dword [0x1350de9c]
mov edi, 1
je 0x13427894
call fcn.13457cf0
test eax, eax
je 0x13427894
push 0
call ebx
mov edi, eax
mov eax, dword [0x13511b00]
test eax, eax
je 0x134278b8
push edi
push esi
push str.DealEmailData__1___d__d_
push 0x134fd048
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x18
mov ecx, ebp
call fcn.134049f0
test edi, edi
je 0x134278e3
test esi, esi
jne 0x134278e3
mov ecx, ebp
call fcn.13404860
mov esi, eax
test esi, esi
je 0x134278e3
call fcn.13457cf0
test eax, eax
je 0x134278e3
push 0
call ebx
mov edi, eax
mov eax, dword [0x13511b00]
test eax, eax
je 0x13427907
push edi
push esi
push str.DealEmailData_2___d__d_
push 0x134fd048
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x18
mov eax, dword [esp + 0x80]
test eax, eax
je 0x13427945
mov ecx, ebp
call fcn.134041e0
mov esi, eax
test esi, esi
je 0x13427912
push 0
push 1
mov ecx, 0x13512be4
call fcn.134134e0
test eax, eax
je 0x1342795c
push 0
push 1
mov ecx, 0x13512be4
call fcn.134134e0
test eax, eax
jne 0x13427931
jmp 0x1342795c
push 0
push 0
mov ecx, 0x13512be4
call fcn.134134e0
mov ecx, ebp
call fcn.134041e0
mov esi, eax
mov ecx, ebp
call fcn.134094d0
test edi, edi
jne 0x1342796d
call dword [0x1350de94]
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0xffffffff
call fcn.13429900
mov ecx, dword [esp + 0x70]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x6c
ret
Function at 0x13427b60
Capabilities:
Delete directory

Disassembly:
push 0xffffffffffffffff
push 0x134c8898
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
lea ecx, [esp + 0x18]
call fcn.134298e0
mov dword [esp + 0x24], 0
mov edi, 1
call fcn.13457cf0
test eax, eax
je 0x13427ba4
push 0
call dword [0x1350de9c]
mov edi, eax
mov ecx, 0x13513008
call fcn.133b8a30
call fcn.13400e80
mov esi, eax
call fcn.133b16e0
push eax
lea ecx, [esp + 0x14]
call fcn.1343e7e0
lea eax, [esp + 0x10]
push str.LeaveMailsTemp_
lea ecx, [esp + 0x10]
push eax
push ecx
mov byte [esp + 0x30], 1
call fcn.1343f860
mov eax, dword [0x13511b00]
mov bl, 2
test eax, eax
mov byte [esp + 0x24], bl
je 0x13427c28
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push edx
call fcn.13443b90
mov eax, dword [eax]
mov byte [esp + 0x24], 3
push eax
push str.strTempDir:_s
push str.CheckLeaveEmailData
push 0xffffffffffffffff
push 0x13511a94
call fcn.13426d30
add esp, 0x14
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.13444490
push ecx
lea edx, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push edx
call fcn.1343e6e0
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.13405a90
push ecx
lea eax, [esp + 0x10]
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
call fcn.1343e6e0
mov ecx, esi
mov byte [esp + 0x28], bl
call fcn.134038a0
mov ecx, dword [esp + 0xc]
push ecx
call fcn.13463ec0
add esp, 4
test eax, eax
je 0x13427ca9
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push edx
call esi
lea eax, [esp + 0x10]
push str.Leave_
lea ecx, [esp + 0x18]
push eax
push ecx
call fcn.1343f860
mov eax, dword [eax]
mov byte [esp + 0x24], 6
push eax
call esi
lea ecx, [esp + 0x14]
mov byte [esp + 0x24], bl
call fcn.1343f110
call fcn.13457cf0
test eax, eax
je 0x13427cbc
test edi, edi
jne 0x13427cbc
call dword [0x1350de94]
lea ecx, [esp + 0xc]
mov byte [esp + 0x24], 1
call fcn.1343f110
lea ecx, [esp + 0x10]
mov byte [esp + 0x24], 0
call fcn.1343f110
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 0xffffffff
call fcn.13429900
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x1c
ret

Function at 0x13442b50
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
mov esi, eax
shr eax, 4
and esi, 0xf
inc eax
push edi
mov edi, dword [esp + 0xc]
and eax, 0xffff
push ecx
push eax
push 6
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x13442b9e
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x13442b9e
xor edx, edx
xor ecx, ecx
mov cx, word [eax]
add eax, 2
cmp esi, edx
je 0x13442ba3
inc edx
lea eax, [eax + ecx*2]
cmp edx, 0x10
jl 0x13442b89
pop edi
xor eax, eax
pop esi
ret
mov edi, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
test edi, edi
jne 0x13442bb3
test esi, esi
jne 0x13442bd1
push 0
push 0
push edi
push esi
push 0xffffffffffffffff
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jle 0x13442bcf
mov byte [eax + esi - 1], 0
jne 0x13442bd8
mov byte [esi + edi - 1], 0
mov eax, edi
pop edi
dec eax
pop esi
ret
Function at 0x13448330
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
push esi
push edi
mov esi, dword [esp + 0xc]
mov edi, eax
shr eax, 4
and edi, 0xf
inc eax
and eax, 0xffff
push ecx
push eax
push 6
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceExA]
test eax, eax
je 0x13448380
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x13448380
xor ecx, ecx
xor eax, eax
mov ax, word [esi]
add esi, 2
cmp edi, ecx
je 0x13448385
inc ecx
lea esi, [esi + eax*2]
cmp ecx, 0x10
jl 0x1344836b
pop edi
xor eax, eax
pop esi
ret
mov edx, dword [esp + 0x1c]
lea ecx, [edx - 1]
cmp eax, ecx
jle 0x13448392
mov eax, ecx
lea edx, [eax + eax]
push ebx
mov ebx, dword [esp + 0x1c]
mov ecx, edx
push ebp
mov ebp, ecx
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
pop ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov word [edx + ebx], 0
pop ebx
pop edi
pop esi
ret

Function at 0x134518d0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov eax, dword [ecx + 4]
push ebx
push ebp
push esi
push edi
mov edi, dword [ecx]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x13451911
lea edx, [esp + 0x14]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x14]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x13451913
mov esi, edi
test esi, esi
je 0x13451988
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x20]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1345197d
mov ecx, dword [esp + 0x20]
mov eax, 4
cmp ecx, eax
jne 0x1345197d
cmp dword [esp + 0x1c], eax
jbe 0x1345194e
mov dword [esp + 0x1c], eax
lea edx, [esp + 0x1c]
lea eax, [esp + 0x10]
push edx
push eax
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x1345197d
cmp esi, edi
je 0x1345196f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
cmp esi, edi
je 0x13451988
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x134519a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
mov dword [esp + 0xc], 0
je 0x13451a05
mov edi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x13451a05
mov ecx, dword [esp + 0x10]
mov eax, 4
cmp ecx, eax
jne 0x13451a05
cmp dword [esp + 0x18], eax
jbe 0x134519eb
mov dword [esp + 0x18], eax
lea edx, [esp + 0x18]
lea eax, [esp + 0xc]
push edx
push eax
push 0
push 0
push edi
push esi
call ebx
test eax, eax
mov eax, dword [esp + 0xc]
je 0x13451a09
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x13451ae0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push esi
mov esi, dword [ecx]
push edi
test esi, esi
je 0x13451b3f
mov edi, dword [esp + 0x14]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
lea ecx, [esp + 0xc]
push eax
push 0
push ecx
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x13451b3f
cmp dword [esp + 0xc], 3
jne 0x13451b3f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
cmp edx, eax
jb 0x13451b3f
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x14]
push eax
push ecx
push 0
push 0
push edi
push esi
call ebx
test eax, eax
jne 0x13451b3f
pop edi
pop esi
mov eax, 1
pop ebx
pop ecx
ret 0xc
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 0xc

Function at 0x13451c20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
push ebx
push ebp
push esi
mov esi, dword [ecx]
test esi, esi
push edi
je 0x13451c94
mov ebx, dword [esp + 0x18]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x10]
push eax
push 0
push ecx
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x13451c94
cmp dword [esp + 0x10], 3
jne 0x13451c94
mov edx, dword [esp + 0x18]
push edx
call fcn.1342ad5a
mov edi, eax
add esp, 4
test edi, edi
je 0x13451c94
lea eax, [esp + 0x18]
push eax
push edi
push 0
push 0
push ebx
push esi
call ebp
test eax, eax
jne 0x13451c8b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
pop ebp
mov dword [ecx], edx
pop ebx
pop ecx
ret 8
push edi
call fcn.13429bc8
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 8
Function at 0x13451ca0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x134c93bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov eax, dword [0x134d0d8c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x10], eax
mov eax, dword [ecx + 4]
mov edi, dword [ecx]
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x28], 1
test ecx, ecx
mov dword [esp + 0x14], edi
je 0x13451d0b
lea edx, [esp + 0x18]
or eax, 0x20019
push edx
push eax
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x13451d0d
mov esi, edi
test esi, esi
je 0x13451dd7
mov ebx, dword [esp + 0x38]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x3c]
push 0
push ecx
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x13451dcc
mov eax, dword [esp + 0x38]
cmp eax, 1
je 0x13451d4f
cmp eax, 2
je 0x13451d4f
cmp eax, 6
je 0x13451d4f
cmp eax, 7
jne 0x13451dcc
mov edx, dword [esp + 0x34]
add edx, 2
push edx
call fcn.1342ad5a
mov ebp, eax
mov eax, dword [esp + 0x38]
mov edi, ebp
add esp, 4
lea ecx, [eax + 2]
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea eax, [esp + 0x34]
push eax
push ebp
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push ebp
jne 0x13451db2
lea ecx, [esp + 0x14]
call fcn.1343f370
cmp esi, dword [esp + 0x14]
je 0x13451da7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebp
call fcn.13429bc8
add esp, 4
jmp 0x13451de9
call fcn.13429bc8
add esp, 4
lea ecx, [esp + 0x10]
push 0x13511a80
call fcn.1343f370
mov edi, dword [esp + 0x14]
cmp esi, edi
je 0x13451dd7
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x13451de9
push eax
lea ecx, [esp + 0x14]
call fcn.1343f370
mov esi, dword [esp + 0x30]
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.1343e6e0
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x28], 0
call fcn.1343f110
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x10
Function at 0x13452890
Capabilities:
Set registry value

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
push esi
push edi
mov edi, dword [ecx]
mov dword [esp + 8], eax
mov eax, dword [ecx + 4]
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x134528d8
lea edx, [esp + 0x10]
or eax, 0x20006
push edx
lea edx, [esp + 0x1c]
push edx
push 0
push eax
push 0
push 0
push 0
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [esp + 0x18]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x134528da
mov esi, edi
test esi, esi
je 0x1345291a
mov ecx, dword [esp + 0x14]
lea eax, [esp + 8]
push 4
push eax
push 4
push 0
push ecx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x1345290f
cmp esi, edi
je 0x13452904
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
pop ecx
ret 0xc
cmp esi, edi
je 0x1345291a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
xor eax, eax
pop esi
pop ecx
ret 0xc

Function at 0x13452a00
Capabilities:
Set registry value

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x13452a2c
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push ecx
mov ecx, dword [esp + 8]
push edx
push 3
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x13452a2c
mov eax, 1
ret 0xc
xor eax, eax
ret 0xc

Function at 0x13452ae0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [ecx]
test edx, edx
je 0x13452b16
push esi
mov esi, dword [esp + 0xc]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push esi
push 1
push eax
mov eax, dword [esp + 0x1c]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
test eax, eax
jne 0x13452b16
mov eax, 1
ret 8
xor eax, eax
ret 8
Function at 0x13452b50
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x134c9488
push eax
mov eax, dword [ebp + 0xc]
mov dword fs:[0], esp
push ebx
push esi
test eax, eax
push edi
je 0x13452ba6
lea ecx, [ebp + 0x14]
lea edx, [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
or ecx, 0x20006
push 0
push ecx
push 0
push 0
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
mov eax, dword [ebp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x13452ba9
mov esi, dword [ebp + 8]
test esi, esi
je 0x13452c93
call fcn.13457ca0
test eax, eax
je 0x13452c2e
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x13452bf7
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebx, eax
inc ebx
lea eax, [ebx + ebx]
add eax, 3
and al, 0xfc
call fcn.1342cb10
mov edi, esp
test edi, edi
je 0x13452bf7
mov eax, dword [ebp + 0x10]
push ebx
push edi
push 0xffffffffffffffff
push eax
push 0
push 0
mov word [edi], 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
jmp 0x13452bf9
xor edi, edi
mov ebx, dword [ebp + 0x18]
push ebx
call fcn.1342ad3d
add esp, 4
lea ecx, [eax + eax + 2]
push ecx
push ebx
push 1
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x13452c87
cmp esi, dword [ebp + 8]
je 0x13452c27
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x13452c95
mov edx, dword [ebp + 0x18]
lea ecx, [ebp + 0x18]
push edx
call fcn.1343e9b0
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
mov eax, dword [ebp + 0x10]
push 1
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x13452c78
cmp esi, dword [ebp + 8]
je 0x13452c62
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.1343f110
mov eax, 1
jmp 0x13452c95
lea ecx, [ebp + 0x18]
mov dword [ebp - 4], 0xffffffff
call fcn.1343f110
cmp esi, dword [ebp + 8]
je 0x13452c93
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0x18]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x134539c0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 8
lea eax, [esp + 0xc]
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push 0
push 0
mov ebx, dword [esp + 0x24]
push 0
push 0
push 0
push 0
push eax
push ecx
push 0
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x13453b38
mov eax, dword [esp + 0x10]
test eax, eax
je 0x13453b17
mov eax, dword [esp + 0x1c]
cmp eax, 0x104
jae 0x13453a16
mov eax, 0x104
mov dword [esp + 0x1c], eax
inc eax
push eax
call fcn.1342ad5a
mov esi, eax
add esp, 4
test esi, esi
je 0x13453b38
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x13453b2f
mov ebp, dword [esp + 0x20]
mov eax, ebp
or eax, 0x2001f
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x20]
push ecx
push eax
push 0
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x13453b2f
mov edi, dword [esp + 0x20]
test edi, edi
je 0x13453b2f
push ebp
push edi
call fcn.134539c0
add esp, 8
test eax, eax
je 0x13453b24
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x13513578]
test eax, eax
je 0x13453ac1
test ebp, ebp
je 0x13453ac1
push 0
push ebp
push esi
push ebx
call eax
test eax, eax
jne 0x13453b2f
jmp 0x13453acd
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x13453b2f
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
je 0x13453b0e
mov edx, dword [esp + 0x1c]
xor eax, eax
mov edi, esi
lea ecx, [edx + 1]
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1c]
inc eax
push eax
push esi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x13453b2f
mov eax, dword [esp + 0x14]
jmp 0x13453a6a
push esi
call fcn.13429bc8
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret
test edi, edi
je 0x13453b2f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.13429bc8
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret

Function at 0x13453b50
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push esi
mov esi, dword [ecx]
push edi
mov edi, dword [ecx + 4]
test esi, esi
je 0x13453bb9
mov eax, dword [esp + 0xc]
test eax, eax
je 0x13453b79
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
jne 0x13453bb9
pop edi
mov eax, 1
pop esi
ret 4
push edi
push esi
call fcn.134539c0
add esp, 8
test eax, eax
je 0x13453bb9
mov eax, dword [0x13513578]
test eax, eax
je 0x13453ba6
test edi, edi
je 0x13453ba6
push 0
push edi
push 0
push esi
call eax
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
neg eax
sbb eax, eax
pop edi
inc eax
pop esi
ret 4
pop edi
xor eax, eax
pop esi
ret 4
Function at 0x13453d30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push ebx
test edx, edx
push esi
mov ebx, ecx
je 0x13453d66
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea esi, [esp + 0xc]
or eax, 0x20019
push esi
push eax
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
mov eax, dword [esp + 0xc]
neg esi
sbb esi, esi
not esi
and esi, eax
jmp 0x13453d68
mov esi, dword [ebx]
test esi, esi
je 0x13453df3
mov edx, dword [esp + 0x10]
push edi
lea eax, [esp + 0x14]
xor edi, edi
push eax
lea ecx, [esp + 0x14]
push edi
push ecx
push edi
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne case.0x13453d98.2
mov eax, dword [esp + 0x18]
cmp eax, 4
ja case.0x13453d98.2
jmp dword [eax*4 + 0x13453dfc]
mov edi, 1
jmp case.0x13453d98.2
mov ecx, dword [esp + 0x10]
xor eax, eax
cmp ecx, 4
sete al
mov edi, eax
jmp case.0x13453d98.2
mov eax, dword [esp + 0x10]
cmp eax, 1
je case.0x13453d98.0
cmp eax, 2
je case.0x13453d98.0
cmp eax, 6
je case.0x13453d98.0
cmp eax, 7
je case.0x13453d98.0
xor edi, edi
jmp case.0x13453d98.2
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp eax, 3
sete cl
mov edi, ecx
cmp esi, dword [ebx]
je 0x13453deb
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc

Function at 0x134540a0
Capabilities:
Terminate thread

Disassembly:
sub esp, 8
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x134540b4
xor eax, eax
pop esi
add esp, 8
ret
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
mov edx, dword [esi + 8]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 8]
push 0
push ecx
push 2
mov dword [esp + 0x18], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov edx, dword [esi + 0x1c]
mov eax, dword [esi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x13454100
mov ecx, dword [esi + 8]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResetEvent]
push edx
call edi
mov eax, dword [esi + 0x14]
push eax
call edi
mov dword [esi + 0xc], 0
pop edi
mov eax, 1
pop esi
add esp, 8
ret