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

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
push esi
lea eax, [esp + 0x18]
push edi
push eax
push 0xf003f
push 0
mov esi, 1
push ebx
push ebp
mov edi, ecx
mov dword [esp + 0x24], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4044a7
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x404498
mov edx, dword [esp + 0x1c]
push esi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x404498
push esi
push ebx
push ebp
mov ecx, edi
call fcn.004042d0
mov eax, dword [esp + 0x1c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x404498
xor esi, esi
jmp 0x40449c
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x404840
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
push 0xf003f
mov esi, ecx
push edi
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x18], edi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, edi
mov dword [esp + 0x10], ebx
je 0x404976
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x38]
push 0xf01ff
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
cmp esi, edi
je 0x40494d
lea ecx, [esp + 0x18]
push ebp
push ecx
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x404906
mov ebp, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
mov ebx, 0x64
mov eax, dword [esp + 0x20]
dec ebx
cmp eax, 1
je 0x4048d8
push 0x64
call edi
lea edx, [esp + 0x1c]
push edx
push esi
call ebp
test eax, eax
je 0x4048d1
test ebx, ebx
jne 0x4048b3
cmp dword [esp + 0x20], 1
jne 0x4048e1
push 0x3e8
call edi
jmp 0x404902
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0x18]
push eax
push 8
mov ecx, ebx
call fcn.004014d0
push eax
push 0x409a18
push ebx
call fcn.00402320
add esp, 0x10
mov ebx, dword [esp + 0x14]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
pop ebp
jne 0x404932
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x430
mov dword [esp + 0xc], eax
jne 0x404932
push 0x3e8
call edi
mov dword [esp + 0xc], 0
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
mov dword [esp + 0xc], eax
jne 0x404962
mov dword [esp + 0xc], edi
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
add esp, 0x28
ret 4
mov ecx, dword [esp + 0x38]
push ecx
mov ecx, esi
call fcn.004023a0
pop edi
pop esi
mov eax, 0x427
pop ebx
add esp, 0x28
ret 4
Function at 0x40d48a
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x53dfdc
call fcn.00513a50
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x40d59a
cmp byte [esi + 0x41], 0
je 0x40d59a
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40d4c0
xor al, al
jmp 0x40d59c
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.00406a6f
mov dword [ebp - 4], edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409688
mov ecx, eax
call fcn.00409335
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409688
mov ecx, eax
call fcn.00409335
mov ecx, dword [esi + 0x3c]
mov edx, dword [ecx]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x30]
push eax
add edi, ebx
push edi
push dword [ebp - 0x34]
lea eax, [esi + 0x44]
push eax
call dword [edx + 0x18]
sub eax, 0
je 0x40d534
dec eax
je 0x40d538
dec eax
dec eax
je 0x40d596
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402a5d
mov al, bl
jmp 0x40d59c
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409688
mov ecx, eax
call fcn.00409335
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x40d578
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409688
mov ecx, eax
call fcn.00409335
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.005147be
add esp, 0x10
cmp edi, eax
jne 0x40d51e
cmp byte [esi + 0x41], 0
je 0x40d596
test edi, edi
jne 0x40d4ce
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004056d5
jmp 0x40d4ce
mov bl, 1
jmp 0x40d520
mov al, 1
call fcn.00513ad3
ret
Function at 0x41008d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53e67b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10ec
call fcn.005150b0
mov eax, dword [0x59b364]
xor eax, esp
mov dword [esp + 0x10e8], eax
push ebx
push esi
push edi
mov eax, dword [0x59b364]
xor eax, esp
push eax
lea eax, [esp + 0x1100]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
and dword [esp + 0x1c], 0
push 0x10
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x10ec]
push 0
push eax
mov dword [esp + 0x2c], ecx
call fcn.00513c50
mov eax, dword [esi + 0x14]
add esp, 0xc
mov byte [esp + 0x10e8], 0x61
mov byte [esp + 0x10e9], 0x31
mov byte [esp + 0x10ea], 0x40
mov byte [esp + 0x10eb], 0x79
mov byte [esp + 0x10ec], 0x68
mov byte [esp + 0x10ed], 0x73
mov byte [esp + 0x10ee], 0x70
mov byte [esp + 0x10ef], 0x21
mov byte [esp + 0x10f0], 0x71
mov byte [esp + 0x10f1], 0x77
mov byte [esp + 0x10f2], 0x65
mov byte [esp + 0x10f3], 0x68
mov byte [esp + 0x10f4], 0x6a
mov byte [esp + 0x10f5], 0x6a
mov byte [esp + 0x10f6], 0x5f
mov byte [esp + 0x10f7], 0x32
test al, 7
jne 0x410184
xor ecx, ecx
jmp 0x41018e
mov edx, eax
push 8
and edx, 7
pop ecx
sub ecx, edx
lea edi, [eax + ecx]
push edi
call fcn.00500e30
push edi
mov dword [esp + 0x18], eax
call fcn.00500e30
push edi
push 0x20
push dword [esp + 0x20]
mov dword [esp + 0x28], eax
call fcn.00513c50
mov eax, dword [esi + 0x14]
add esp, 0x14
cmp dword [esi + 0x18], 0x10
jb 0x4101c2
mov esi, dword [esi + 4]
jmp 0x4101c5
add esi, 4
push eax
push esi
push dword [esp + 0x18]
call fcn.00514d40
add esp, 0xc
push 0x10
lea eax, [esp + 0x10ec]
push eax
lea ecx, [esp + 0x34]
call fcn.0040fdf7
push edi
push dword [esp + 0x14]
xor ebx, ebx
push dword [esp + 0x1c]
inc ebx
lea ecx, [esp + 0x3c]
mov dword [esp + 0x1114], ebx
call fcn.004cea00
lea ecx, [esp + 0x24]
call fcn.0046bd80
push edi
push dword [esp + 0x18]
lea eax, [esp + 0x10d4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1114], 2
call fcn.0046bdb0
push dword [esp + 0x10]
mov byte [esp + 0x110c], 3
call fcn.00513fa4
push dword [esp + 0x18]
call fcn.00513fa4
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10cc]
push eax
push dword [esp + 0x1c]
call fcn.0040f1d2
push 0
push ebx
lea ecx, [esp + 0x10d4]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1110], 2
call fcn.00402a5d
lea ecx, [esp + 0x24]
mov byte [esp + 0x1108], bl
call fcn.0046bd90
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1108], 0
call fcn.0040f922
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1100]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10e8]
xor ecx, esp
call fcn.005139d8
mov esp, ebp
pop ebp
ret 8
Function at 0x411834
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x411841
xor al, al
jmp 0x4118c0
push esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x411894
push str.RegDeleteKeyExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41188d
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0x10
jb 0x411871
mov ecx, dword [ecx + 4]
jmp 0x411874
add ecx, 4
movzx edx, byte [ebp + 0x10]
neg edx
push 0
sbb edx, edx
and edx, 0x100
push edx
push ecx
push dword [ebp + 8]
call eax
jmp 0x4118af
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x4118a2
mov eax, dword [eax + 4]
jmp 0x4118a5
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4118bc
cmp eax, 2
je 0x4118bc
xor eax, eax
jmp 0x4118bf
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x41191a
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4119b0
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4119b0
push 2
pop ecx
cmp byte [ebp + 0x18], bl
je 0x41193e
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x41194c
mov eax, dword [eax + 4]
jmp 0x41194f
add eax, 4
push ebx
lea edx, [ebp + 0x18]
push edx
push ebx
push ecx
push ebx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4119b0
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
mov edx, dword [eax + 0x14]
jb 0x411978
mov eax, dword [eax + 4]
jmp 0x41197b
add eax, 4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x18], 0x10
jb 0x411989
mov ecx, dword [ecx + 4]
jmp 0x41198c
add ecx, 4
push edx
push eax
push 1
push ebx
push ecx
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x4119b2
xor al, al
pop ebx
pop ebp
ret 0x14

Function at 0x4119b7
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x411a39
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x411a39
push 2
pop ecx
cmp byte [ebp + 0x18], bl
je 0x4119d7
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x4119e5
mov eax, dword [eax + 4]
jmp 0x4119e8
add eax, 4
push ebx
lea edx, [ebp + 0x18]
push edx
push ebx
push ecx
push ebx
push ebx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x411a39
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x411a0e
mov eax, dword [eax + 4]
jmp 0x411a11
add eax, 4
push 4
lea ecx, [ebp + 0x14]
push ecx
push 4
push ebx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x411a3b
xor al, al
pop ebx
pop ebp
ret 0x14
Function at 0x411a40
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push esi
cmp dword [ebp + 8], ecx
je 0x411b0a
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ecx
je 0x411b0a
push 2
pop edx
cmp byte [ebp + 0x18], cl
je 0x411a68
mov edx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], ecx
jb 0x411a76
mov eax, dword [eax + 4]
jmp 0x411a79
add eax, 4
push ecx
lea esi, [ebp + 0xc]
push esi
push ecx
push edx
push ecx
push ecx
push ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x411b0a
push ebx
push edi
mov edi, dword [ebp + 0x14]
mov esi, dword [edi + 0x10]
sub esi, dword [edi + 0xc]
xor bl, bl
push esi
call fcn.00500e30
pop ecx
mov dword [ebp + 0x18], eax
test eax, eax
je 0x411afb
xor ebx, ebx
test esi, esi
jbe 0x411ac7
push ebx
mov ecx, edi
call fcn.00432747
mov al, byte [eax]
mov ecx, dword [ebp + 0x18]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, esi
jb 0x411ab2
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x411ad5
mov eax, dword [eax + 4]
jmp 0x411ad8
add eax, 4
push esi
push dword [ebp + 0x18]
push 3
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x18]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.00513fa4
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x411b0c
xor al, al
pop esi
pop ebp
ret 0x14

Function at 0x411b11
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x411b92
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x411b92
push 2
pop ecx
cmp byte [ebp + 0x14], bl
je 0x411b31
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x411b3f
mov eax, dword [eax + 4]
jmp 0x411b42
add eax, 4
push esi
lea edx, [ebp + 0x14]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
cmp esi, ebx
jne 0x411b83
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x411b67
mov eax, dword [eax + 4]
jmp 0x411b6a
add eax, 4
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp + 0x14]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x411b8c
cmp esi, 2
je 0x411b8c
xor eax, eax
jmp 0x411b8f
xor eax, eax
inc eax
pop esi
jmp 0x411b94
xor al, al
pop ebx
pop ebp
ret 0x10
Function at 0x411b99
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x411c12
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x411c12
xor ecx, ecx
inc ecx
cmp byte [ebp + 0x14], bl
je 0x411bb9
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x411bc7
mov eax, dword [eax + 4]
jmp 0x411bca
add eax, 4
lea edx, [ebp + 0x14]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411c12
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x411bec
mov eax, dword [eax + 4]
jmp 0x411bef
add eax, 4
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp + 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp + 0x14]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, bl
jmp 0x411c14
xor al, al
pop ebx
pop ebp
ret 0x10

Function at 0x411c19
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push ebx
xor ebx, ebx
mov dword [eax], ebx
cmp dword [ebp + 8], ebx
je 0x411ce6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x411ce6
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x411c4a
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x411c58
mov eax, dword [eax + 4]
jmp 0x411c5b
add eax, 4
lea edx, [ebp + 0x18]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x411ce1
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
lea edi, [esi + 4]
jb 0x411c87
mov eax, dword [edi]
jmp 0x411c89
mov eax, edi
lea ecx, [ebp - 4]
push ecx
push ebx
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411cd6
cmp dword [ebp + 8], 4
jne 0x411cd6
cmp dword [esi + 0x18], 0x10
mov dword [ebp + 0x10], ebx
jb 0x411cb2
mov edi, dword [edi]
lea eax, [ebp - 4]
push eax
lea eax, [ebp + 0x10]
push eax
push ebx
push ebx
push edi
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x411cd6
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
mov byte [ebp + 0xf], 1
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x411ce8
xor al, al
pop ebx
leave
ret 0x14
Function at 0x411d8f
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x411f03
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
je 0x411f03
cmp byte [ebp + 0x18], 0
push 2
pop ecx
je 0x411dbb
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], esi
jb 0x411dc9
mov eax, dword [eax + 4]
jmp 0x411dcc
add eax, 4
push esi
lea edx, [ebp + 0xc]
push edx
push esi
push ecx
push esi
push esi
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x411f03
push ebx
push edi
mov dword [ebp + 0x18], esi
mov esi, dword [ebp + 0x14]
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 8]
xor bl, bl
call fcn.004034b4
jmp 0x411e1d
lea ecx, [ebp - 8]
call fcn.00440227
mov ecx, dword [ebp + 0x18]
mov eax, dword [eax + 0x14]
lea eax, [ecx + eax + 1]
lea ecx, [ebp - 8]
mov dword [ebp + 0x18], eax
call fcn.00407551
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.004034b4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.004071ee
test al, al
je 0x411e00
mov edi, dword [ebp + 0x18]
inc edi
push edi
call fcn.00500e30
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x411ef4
push edi
push 0
push eax
call fcn.00513c50
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 8]
call fcn.004034b4
jmp 0x411ea2
lea ecx, [ebp - 8]
call fcn.00440227
cmp dword [eax + 0x18], 0x10
jb 0x411e7f
mov eax, dword [eax + 4]
jmp 0x411e82
add eax, 4
push eax
push ebx
call fcn.005150e0
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.00440227
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 8]
lea ebx, [ebx + eax + 1]
call fcn.00407551
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.004034b4
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.004071ee
test al, al
je 0x411e6c
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x411ecc
mov eax, dword [eax + 4]
jmp 0x411ecf
add eax, 4
push dword [ebp + 0x18]
push dword [ebp + 8]
push 7
push 0
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 8]
mov ebx, eax
neg ebx
sbb bl, bl
inc bl
call fcn.00513fa4
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x411f05
xor al, al
pop esi
leave
ret 0x14
Function at 0x411fce
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.0040d284
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4120c8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4120c8
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x412003
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x412011
mov eax, dword [eax + 4]
jmp 0x412014
add eax, 4
lea edx, [ebp - 4]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4120c3
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp - 8], ebx
mov dword [ebp + 0x18], ebx
lea edi, [esi + 4]
jb 0x412044
mov eax, dword [edi]
jmp 0x412046
mov eax, edi
lea ecx, [ebp + 0x18]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4120b8
cmp dword [ebp - 8], 1
jne 0x4120b8
push dword [ebp + 0x18]
call fcn.00500e30
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x4120b8
push dword [ebp + 0x18]
push ebx
push eax
call fcn.00513c50
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x412089
mov edi, dword [edi]
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 8]
push ebx
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4120af
push dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
call fcn.00402a3c
mov byte [ebp + 0xf], 1
push dword [ebp + 8]
call fcn.00513fa4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x4120ca
xor al, al
pop ebx
leave
ret 0x14
Function at 0x41231e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.00411f93
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x412429
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x412429
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x412353
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x412361
mov eax, dword [eax + 4]
jmp 0x412364
add eax, 4
lea edx, [ebp - 4]
push edx
push ecx
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x412424
push esi
mov esi, dword [ebp + 0x10]
cmp dword [esi + 0x18], 0x10
push edi
mov dword [ebp - 8], ebx
mov dword [ebp + 8], ebx
lea edi, [esi + 4]
jb 0x412394
mov eax, dword [edi]
jmp 0x412396
mov eax, edi
lea ecx, [ebp + 8]
push ecx
push ebx
lea ecx, [ebp - 8]
push ecx
push ebx
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412419
cmp dword [ebp - 8], 3
jne 0x412419
push dword [ebp + 8]
call fcn.00500e30
pop ecx
mov dword [ebp + 0x18], eax
cmp eax, ebx
je 0x412419
push dword [ebp + 8]
push ebx
push eax
call fcn.00513c50
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x4123d9
mov edi, dword [edi]
mov esi, dword [ebp + 0x18]
lea eax, [ebp + 8]
push eax
push esi
push ebx
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x412412
cmp dword [ebp + 8], ebx
jbe 0x41240e
mov al, byte [ebx + esi]
mov ecx, dword [ebp + 0x14]
mov byte [ebp + 0x1b], al
lea eax, [ebp + 0x1b]
push eax
call fcn.004122c4
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x4123f6
mov byte [ebp + 0xf], 1
push esi
call fcn.00513fa4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x41242b
xor al, al
pop ebx
leave
ret 0x14
Function at 0x412430
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x59b364]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x44
mov eax, 0x53e99e
call fcn.005139e7
mov eax, dword [ebp + 0x40c]
mov esi, dword [ebp + 0x414]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x410]
xor ebx, ebx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x1c], ebx
call fcn.004027da
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x10], ebx
je 0x41254a
cmp dword [esi + 0x14], ebx
je 0x41254a
push 8
pop eax
cmp byte [ebp + 0x418], bl
je 0x4124a1
mov eax, pe_nt_image_headers32
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x18], ebx
jb 0x4124af
mov esi, dword [esi + 4]
jmp 0x4124b2
add esi, 4
lea ecx, [ebp - 0x18]
push ecx
push eax
push ebx
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41253c
push 0x3ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00513c50
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
add esp, 0xc
mov edi, 0x400
push edi
lea eax, [ebp]
push eax
mov dword [ebp - 0x10], ebx
push ebx
jmp 0x412527
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x50]
call fcn.004020cc
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.004028ab
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00402a5d
inc dword [ebp - 0x10]
push edi
lea eax, [ebp]
push eax
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call esi
test eax, eax
je 0x4124f1
push dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
inc edi
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.0040280c
jmp 0x412556
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.0040280c
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], bl
call fcn.00402899
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.005139d8
add ebp, 0x404
leave
ret 0x10