joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40dfc7
Capabilities:
Write file on windows

Disassembly:
push 0x48
mov eax, 0x5561e4
call fcn.0052b390
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x3c], edi
je 0x40e0d7
cmp byte [esi + 0x41], 0
je 0x40e0d7
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 4]
cmp eax, 0xffffffff
jne 0x40dffd
xor al, al
jmp 0x40e0d9
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.004074f0
mov dword [ebp - 4], edi
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a20a
mov ecx, eax
call fcn.00409eaa
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a20a
mov ecx, eax
call fcn.00409eaa
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 0x40e071
dec eax
je 0x40e075
dec eax
dec eax
je 0x40e0d3
xor bl, bl
or dword [ebp - 4], 0xffffffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00402d14
mov al, bl
jmp 0x40e0d9
mov byte [esi + 0x41], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a20a
mov ecx, eax
call fcn.00409eaa
mov edi, dword [ebp - 0x30]
sub edi, eax
je 0x40e0b5
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040a20a
mov ecx, eax
call fcn.00409eaa
push dword [esi + 0x4c]
push edi
push 1
push eax
call fcn.0052c0fe
add esp, 0x10
cmp edi, eax
jne 0x40e05b
cmp byte [esi + 0x41], 0
je 0x40e0d3
test edi, edi
jne 0x40e00b
push edi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0040592e
jmp 0x40e00b
mov bl, 1
jmp 0x40e05d
mov al, 1
call fcn.0052b413
ret

Function at 0x40fed6
Capabilities:
Set current directory

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x40feeb
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi + 4], 0
cmp dword [esi + 0x38], 0
je 0x40ff12
push edi
lea edi, [esi + 0x24]
cmp dword [edi + 0x18], 0x10
jb 0x40ff00
mov eax, dword [edi + 4]
jmp 0x40ff03
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, edi
call fcn.0040ddc1
pop edi
cmp dword [esi + 0x20], 0x10
jb 0x40ff1d
mov esi, dword [esi + 0xc]
jmp 0x40ff20
add esi, 0xc
push esi
call fcn.0052bf6c
pop ecx
pop esi
ret
Function at 0x411c8e
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x556b4f
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10ec
call fcn.0052cb30
mov eax, dword [0x5c4954]
xor eax, esp
mov dword [esp + 0x10e8], eax
push ebx
push esi
push edi
mov eax, dword [0x5c4954]
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.0052b590
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 0x411d85
xor ecx, ecx
jmp 0x411d8f
mov edx, eax
push 8
and edx, 7
pop ecx
sub ecx, edx
lea edi, [eax + ecx]
push edi
call fcn.00518720
push edi
mov dword [esp + 0x18], eax
call fcn.00518720
push edi
push 0x20
push dword [esp + 0x20]
mov dword [esp + 0x28], eax
call fcn.0052b590
mov eax, dword [esi + 0x14]
add esp, 0x14
cmp dword [esi + 0x18], 0x10
jb 0x411dc3
mov esi, dword [esi + 4]
jmp 0x411dc6
add esi, 4
push eax
push esi
push dword [esp + 0x18]
call fcn.0052c7c0
add esp, 0xc
push 0x10
lea eax, [esp + 0x10ec]
push eax
lea ecx, [esp + 0x34]
call fcn.004119fc
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.005076f7
lea ecx, [esp + 0x24]
call fcn.004a23a0
push edi
push dword [esp + 0x18]
lea eax, [esp + 0x10d4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1114], 2
call fcn.004a23d0
push dword [esp + 0x10]
mov byte [esp + 0x110c], 3
call fcn.0052b8e4
push dword [esp + 0x18]
call fcn.0052b8e4
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10cc]
push eax
push dword [esp + 0x1c]
call fcn.0041100e
push 0
push ebx
lea ecx, [esp + 0x10d4]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1110], 2
call fcn.00402d14
lea ecx, [esp + 0x24]
mov byte [esp + 0x1108], bl
call fcn.004a23b0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1108], 0
call fcn.00411606
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.0052b318
mov esp, ebp
pop ebp
ret 8
Function at 0x413435
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x413442
xor al, al
jmp 0x4134c1
push esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x413495
push str.RegDeleteKeyExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41348e
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0x10
jb 0x413472
mov ecx, dword [ecx + 4]
jmp 0x413475
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 0x4134b0
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x4134a3
mov eax, dword [eax + 4]
jmp 0x4134a6
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x4134bd
cmp eax, 2
je 0x4134bd
xor eax, eax
jmp 0x4134c0
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x41351b
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4135b1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4135b1
push 2
pop ecx
cmp byte [ebp + 0x18], bl
je 0x41353f
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x41354d
mov eax, dword [eax + 4]
jmp 0x413550
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 0x4135b1
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
mov edx, dword [eax + 0x14]
jb 0x413579
mov eax, dword [eax + 4]
jmp 0x41357c
add eax, 4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x18], 0x10
jb 0x41358a
mov ecx, dword [ecx + 4]
jmp 0x41358d
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 0x4135b3
xor al, al
pop ebx
pop ebp
ret 0x14

Function at 0x4135b8
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x41363a
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x41363a
push 2
pop ecx
cmp byte [ebp + 0x18], bl
je 0x4135d8
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x4135e6
mov eax, dword [eax + 4]
jmp 0x4135e9
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 0x41363a
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x41360f
mov eax, dword [eax + 4]
jmp 0x413612
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 0x41363c
xor al, al
pop ebx
pop ebp
ret 0x14
Function at 0x413641
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push esi
cmp dword [ebp + 8], ecx
je 0x41370b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ecx
je 0x41370b
push 2
pop edx
cmp byte [ebp + 0x18], cl
je 0x413669
mov edx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], ecx
jb 0x413677
mov eax, dword [eax + 4]
jmp 0x41367a
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 0x41370b
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.00518720
pop ecx
mov dword [ebp + 0x18], eax
test eax, eax
je 0x4136fc
xor ebx, ebx
test esi, esi
jbe 0x4136c8
push ebx
mov ecx, edi
call fcn.00438ecb
mov al, byte [eax]
mov ecx, dword [ebp + 0x18]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, esi
jb 0x4136b3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x4136d6
mov eax, dword [eax + 4]
jmp 0x4136d9
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.0052b8e4
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x41370d
xor al, al
pop esi
pop ebp
ret 0x14

Function at 0x413712
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x413793
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x413793
push 2
pop ecx
cmp byte [ebp + 0x14], bl
je 0x413732
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x413740
mov eax, dword [eax + 4]
jmp 0x413743
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 0x413784
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x413768
mov eax, dword [eax + 4]
jmp 0x41376b
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 0x41378d
cmp esi, 2
je 0x41378d
xor eax, eax
jmp 0x413790
xor eax, eax
inc eax
pop esi
jmp 0x413795
xor al, al
pop ebx
pop ebp
ret 0x10
Function at 0x41379a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x413813
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x413813
xor ecx, ecx
inc ecx
cmp byte [ebp + 0x14], bl
je 0x4137ba
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x4137c8
mov eax, dword [eax + 4]
jmp 0x4137cb
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 0x413813
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x4137ed
mov eax, dword [eax + 4]
jmp 0x4137f0
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 0x413815
xor al, al
pop ebx
pop ebp
ret 0x10

Function at 0x41381a
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 0x4138e7
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4138e7
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x41384b
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x413859
mov eax, dword [eax + 4]
jmp 0x41385c
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 0x4138e2
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 0x413888
mov eax, dword [edi]
jmp 0x41388a
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 0x4138d7
cmp dword [ebp + 8], 4
jne 0x4138d7
cmp dword [esi + 0x18], 0x10
mov dword [ebp + 0x10], ebx
jb 0x4138b3
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 0x4138d7
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 0x4138e9
xor al, al
pop ebx
leave
ret 0x14
Function at 0x4139c2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x413b36
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
je 0x413b36
cmp byte [ebp + 0x18], 0
push 2
pop ecx
je 0x4139ee
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], esi
jb 0x4139fc
mov eax, dword [eax + 4]
jmp 0x4139ff
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 0x413b36
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.0040375d
jmp 0x413a50
lea ecx, [ebp - 8]
call fcn.0042cd37
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.004080e6
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.0040375d
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00407d4f
test al, al
je 0x413a33
mov edi, dword [ebp + 0x18]
inc edi
push edi
call fcn.00518720
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x413b27
push edi
push 0
push eax
call fcn.0052b590
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 8]
call fcn.0040375d
jmp 0x413ad5
lea ecx, [ebp - 8]
call fcn.0042cd37
cmp dword [eax + 0x18], 0x10
jb 0x413ab2
mov eax, dword [eax + 4]
jmp 0x413ab5
add eax, 4
push eax
push ebx
call fcn.0052cb60
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.0042cd37
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 8]
lea ebx, [ebx + eax + 1]
call fcn.004080e6
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.0040375d
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00407d4f
test al, al
je 0x413a9f
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x413aff
mov eax, dword [eax + 4]
jmp 0x413b02
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.0052b8e4
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x413b38
xor al, al
pop esi
leave
ret 0x14
Function at 0x413c01
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.0040ddc1
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x413d00
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x413d00
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x413c35
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x413c43
mov eax, dword [eax + 4]
jmp 0x413c46
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 0x413cfb
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 0x413c76
mov eax, dword [edi]
jmp 0x413c78
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 0x413cf0
cmp dword [ebp + 8], 1
je 0x413c9c
cmp dword [ebp + 8], 2
jne 0x413cf0
push dword [ebp + 0x18]
call fcn.00518720
pop ecx
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x413cf0
push dword [ebp + 0x18]
push ebx
push eax
call fcn.0052b590
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x413cc1
mov edi, dword [edi]
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
push ebx
push ebx
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x413ce7
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
call fcn.00402cf3
mov byte [ebp + 0xf], 1
push dword [ebp + 0x10]
call fcn.0052b8e4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x413d02
xor al, al
pop ebx
leave
ret 0x14
Function at 0x413f56
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.00413bc6
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x414061
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x414061
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x413f8b
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x413f99
mov eax, dword [eax + 4]
jmp 0x413f9c
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 0x41405c
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 0x413fcc
mov eax, dword [edi]
jmp 0x413fce
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 0x414051
cmp dword [ebp - 8], 3
jne 0x414051
push dword [ebp + 8]
call fcn.00518720
pop ecx
mov dword [ebp + 0x18], eax
cmp eax, ebx
je 0x414051
push dword [ebp + 8]
push ebx
push eax
call fcn.0052b590
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x414011
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 0x41404a
cmp dword [ebp + 8], ebx
jbe 0x414046
mov al, byte [ebx + esi]
mov ecx, dword [ebp + 0x14]
mov byte [ebp + 0x1b], al
lea eax, [ebp + 0x1b]
push eax
call fcn.00413efc
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x41402e
mov byte [ebp + 0xf], 1
push esi
call fcn.0052b8e4
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x414063
xor al, al
pop ebx
leave
ret 0x14
Function at 0x414068
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x5c4954]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x44
mov eax, 0x556e72
call fcn.0052b327
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.004029c2
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x10], ebx
je 0x414182
cmp dword [esi + 0x14], ebx
je 0x414182
push 8
pop eax
cmp byte [ebp + 0x418], bl
je 0x4140d9
mov eax, pe_nt_image_headers32
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x18], ebx
jb 0x4140e7
mov esi, dword [esi + 4]
jmp 0x4140ea
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 0x414174
push 0x3ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.0052b590
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 0x41415f
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x50]
call fcn.004022a6
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00402b62
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00402d14
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 0x414129
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.004029f4
jmp 0x41418e
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.004029f4
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], bl
call fcn.00402a81
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.0052b318
add ebp, 0x404
leave
ret 0x10
Function at 0x41e260
Capabilities:
Encode data using xor

Disassembly:
push 0xc
mov eax, 0x55ec83
call fcn.0052b327
mov eax, dword [ebp + 8]
xor esi, esi
xor ebx, ebx
inc ebx
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x14], eax
test byte [0x5c6c38], bl
jne 0x41e303
movzx eax, word [0x5c6c3c]
movzx ecx, word [0x5c6c3e]
imul eax, eax, 0x9069
mov edx, dword [0x5c6c40]
add eax, ecx
movzx ecx, word [0x5c6c48]
or dword [0x5c6c38], ebx
imul ecx, ecx, 0x4650
mov dword [0x5c6c3c], eax
movzx eax, word [0x5c6c4a]
add ecx, eax
mov eax, dword [0x5c6c44]
imul eax, eax, 0x10dcd
mov esi, edx
shl esi, 0xc
xor esi, edx
mov edi, edx
add eax, 0x12d687
shl esi, 5
shr edi, 0xd
xor esi, edi
mov dword [0x5c6c44], eax
xor edx, esi
xor al, cl
add al, dl
mov dword [0x5c6c48], ecx
mov dword [0x5c6c40], edx
mov byte [0x5c6c34], al
xor esi, esi
jmp 0x41e308
mov al, byte [0x5c6c34]
test byte [0x5c6c38], 2
jne 0x41e347
or dword [0x5c6c38], 2
mov cl, al
xor cl, 0x53
mov byte [0x5c6c30], cl
mov cl, al
dec cl
xor cl, 0x54
mov byte [0x5c6c31], cl
mov cl, al
sub cl, 2
xor cl, 0x45
sub al, 3
xor al, 0x21
mov byte [0x5c6c32], cl
mov byte [0x5c6c33], al
mov ecx, dword [ebp - 0x14]
push esi
push 4
call fcn.004074f0
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp - 0x10]
mov bl, byte [0x5c6c34]
mov ecx, dword [ebp - 0x14]
sub bl, al
xor bl, byte [eax + 0x5c6c30]
push eax
call fcn.00407518
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
mov byte [eax], bl
jb 0x41e35b
mov eax, dword [ebp - 0x14]
call fcn.0052b3ff
ret

Function at 0x42594d
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jae 0x425977
push esi
mov al, byte [edx]
xor al, byte [ecx]
shr dword [ecx], 8
mov esi, dword [ecx]
movzx eax, al
mov eax, dword [eax*4 + 0x5c7520]
xor eax, esi
inc edx
mov dword [ecx], eax
cmp edx, dword [esp + 0xc]
jb 0x425958
pop esi
ret 8

Function at 0x425a0b
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x5c7920], 0
jne 0x425a6d
push esi
push edi
mov byte [ebp - 4], 0
mov esi, 0x80000000
xor eax, eax
mov cl, 0x80
mov dl, byte [ebp - 4]
test dl, cl
je 0x425a30
xor eax, esi
test esi, eax
je 0x425a3d
add eax, eax
xor eax, 0x4c11db7
jmp 0x425a3f
add eax, eax
shr cl, 1
jne 0x425a27
push eax
call fcn.004258ca
push dword [ebp - 4]
mov edi, eax
call fcn.004258ee
inc byte [ebp - 4]
movzx eax, al
pop ecx
pop ecx
mov dword [eax*4 + 0x5c7520], edi
jne 0x425a23
pop edi
mov byte [0x5c7920], 1
pop esi
leave
ret