joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41000d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x53cf43
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10ec
call fcn.00513970
mov eax, dword [0x599274]
xor eax, esp
mov dword [esp + 0x10e8], eax
push ebx
push esi
push edi
mov eax, dword [0x599274]
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.00512510
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 0x410104
xor ecx, ecx
jmp 0x41010e
mov edx, eax
push 8
and edx, 7
pop ecx
sub ecx, edx
lea edi, [eax + ecx]
push edi
call fcn.004ff6f0
push edi
mov dword [esp + 0x18], eax
call fcn.004ff6f0
push edi
push 0x20
push dword [esp + 0x20]
mov dword [esp + 0x28], eax
call fcn.00512510
mov eax, dword [esi + 0x14]
add esp, 0x14
cmp dword [esi + 0x18], 0x10
jb 0x410142
mov esi, dword [esi + 4]
jmp 0x410145
add esi, 4
push eax
push esi
push dword [esp + 0x18]
call fcn.00513600
add esp, 0xc
push 0x10
lea eax, [esp + 0x10ec]
push eax
lea ecx, [esp + 0x34]
call fcn.0040fd82
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.004cd359
lea ecx, [esp + 0x24]
call fcn.0046a7e0
push edi
push dword [esp + 0x18]
lea eax, [esp + 0x10d4]
push eax
lea ecx, [esp + 0x30]
mov byte [esp + 0x1114], 2
call fcn.0046a810
push dword [esp + 0x10]
mov byte [esp + 0x110c], 3
call fcn.00512864
push dword [esp + 0x18]
call fcn.00512864
pop ecx
pop ecx
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x10cc]
push eax
push dword [esp + 0x1c]
call fcn.0040f153
push 0
push ebx
lea ecx, [esp + 0x10d4]
mov dword [esp + 0x24], ebx
mov byte [esp + 0x1110], 2
call fcn.00402a53
lea ecx, [esp + 0x24]
mov byte [esp + 0x1108], bl
call fcn.0046a7f0
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1108], 0
call fcn.0040f8ad
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.00512298
mov esp, ebp
pop ebp
ret 8
Function at 0x4117d3
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x4117e0
xor al, al
jmp 0x41185f
push esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x411833
push str.RegDeleteKeyExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x41182c
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0x10
jb 0x411810
mov ecx, dword [ecx + 4]
jmp 0x411813
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 0x41184e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x411841
mov eax, dword [eax + 4]
jmp 0x411844
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x41185b
cmp eax, 2
je 0x41185b
xor eax, eax
jmp 0x41185e
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x4118b9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x41194f
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x41194f
push 2
pop ecx
cmp byte [ebp + 0x18], bl
je 0x4118dd
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x4118eb
mov eax, dword [eax + 4]
jmp 0x4118ee
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 0x41194f
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
mov edx, dword [eax + 0x14]
jb 0x411917
mov eax, dword [eax + 4]
jmp 0x41191a
add eax, 4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x18], 0x10
jb 0x411928
mov ecx, dword [ecx + 4]
jmp 0x41192b
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 0x411951
xor al, al
pop ebx
pop ebp
ret 0x14

Function at 0x411956
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4119d8
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4119d8
push 2
pop ecx
cmp byte [ebp + 0x18], bl
je 0x411976
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x411984
mov eax, dword [eax + 4]
jmp 0x411987
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 0x4119d8
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x4119ad
mov eax, dword [eax + 4]
jmp 0x4119b0
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 0x4119da
xor al, al
pop ebx
pop ebp
ret 0x14
Function at 0x4119df
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push esi
cmp dword [ebp + 8], ecx
je 0x411aa9
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ecx
je 0x411aa9
push 2
pop edx
cmp byte [ebp + 0x18], cl
je 0x411a07
mov edx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], ecx
jb 0x411a15
mov eax, dword [eax + 4]
jmp 0x411a18
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 0x411aa9
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.004ff6f0
pop ecx
mov dword [ebp + 0x18], eax
test eax, eax
je 0x411a9a
xor ebx, ebx
test esi, esi
jbe 0x411a66
push ebx
mov ecx, edi
call fcn.004115ee
mov al, byte [eax]
mov ecx, dword [ebp + 0x18]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, esi
jb 0x411a51
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x411a74
mov eax, dword [eax + 4]
jmp 0x411a77
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.00512864
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x411aab
xor al, al
pop esi
pop ebp
ret 0x14

Function at 0x411ab0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x411b31
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x411b31
push 2
pop ecx
cmp byte [ebp + 0x14], bl
je 0x411ad0
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x411ade
mov eax, dword [eax + 4]
jmp 0x411ae1
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 0x411b22
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x411b06
mov eax, dword [eax + 4]
jmp 0x411b09
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 0x411b2b
cmp esi, 2
je 0x411b2b
xor eax, eax
jmp 0x411b2e
xor eax, eax
inc eax
pop esi
jmp 0x411b33
xor al, al
pop ebx
pop ebp
ret 0x10
Function at 0x411b38
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x411bb1
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x411bb1
xor ecx, ecx
inc ecx
cmp byte [ebp + 0x14], bl
je 0x411b58
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x411b66
mov eax, dword [eax + 4]
jmp 0x411b69
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 0x411bb1
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x411b8b
mov eax, dword [eax + 4]
jmp 0x411b8e
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 0x411bb3
xor al, al
pop ebx
pop ebp
ret 0x10

Function at 0x411bb8
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 0x411c85
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x411c85
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x411be9
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x411bf7
mov eax, dword [eax + 4]
jmp 0x411bfa
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 0x411c80
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 0x411c26
mov eax, dword [edi]
jmp 0x411c28
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 0x411c75
cmp dword [ebp + 8], 4
jne 0x411c75
cmp dword [esi + 0x18], 0x10
mov dword [ebp + 0x10], ebx
jb 0x411c51
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 0x411c75
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 0x411c87
xor al, al
pop ebx
leave
ret 0x14
Function at 0x411d2e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x411ea2
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
je 0x411ea2
cmp byte [ebp + 0x18], 0
push 2
pop ecx
je 0x411d5a
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], esi
jb 0x411d68
mov eax, dword [eax + 4]
jmp 0x411d6b
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 0x411ea2
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.004034aa
jmp 0x411dbc
lea ecx, [ebp - 8]
call fcn.0044c881
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.0040759f
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.004034aa
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040723c
test al, al
je 0x411d9f
mov edi, dword [ebp + 0x18]
inc edi
push edi
call fcn.004ff6f0
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x411e93
push edi
push 0
push eax
call fcn.00512510
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 8]
call fcn.004034aa
jmp 0x411e41
lea ecx, [ebp - 8]
call fcn.0044c881
cmp dword [eax + 0x18], 0x10
jb 0x411e1e
mov eax, dword [eax + 4]
jmp 0x411e21
add eax, 4
push eax
push ebx
call fcn.005139a0
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.0044c881
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 8]
lea ebx, [ebx + eax + 1]
call fcn.0040759f
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.004034aa
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.0040723c
test al, al
je 0x411e0b
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x411e6b
mov eax, dword [eax + 4]
jmp 0x411e6e
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.00512864
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x411ea4
xor al, al
pop esi
leave
ret 0x14
Function at 0x411f52
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.0040d233
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x41204c
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x41204c
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x411f87
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x411f95
mov eax, dword [eax + 4]
jmp 0x411f98
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 0x412047
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 0x411fc8
mov eax, dword [edi]
jmp 0x411fca
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 0x41203c
cmp dword [ebp - 8], 1
jne 0x41203c
push dword [ebp + 0x18]
call fcn.004ff6f0
pop ecx
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x41203c
push dword [ebp + 0x18]
push ebx
push eax
call fcn.00512510
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x41200d
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 0x412033
push dword [ebp + 8]
mov ecx, dword [ebp + 0x14]
call fcn.00402a32
mov byte [ebp + 0xf], 1
push dword [ebp + 8]
call fcn.00512864
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x41204e
xor al, al
pop ebx
leave
ret 0x14
Function at 0x4122a2
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.00411f17
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4123ad
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4123ad
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x4122d7
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x4122e5
mov eax, dword [eax + 4]
jmp 0x4122e8
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 0x4123a8
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 0x412318
mov eax, dword [edi]
jmp 0x41231a
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 0x41239d
cmp dword [ebp - 8], 3
jne 0x41239d
push dword [ebp + 8]
call fcn.004ff6f0
pop ecx
mov dword [ebp + 0x18], eax
cmp eax, ebx
je 0x41239d
push dword [ebp + 8]
push ebx
push eax
call fcn.00512510
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x41235d
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 0x412396
cmp dword [ebp + 8], ebx
jbe 0x412392
mov al, byte [ebx + esi]
mov ecx, dword [ebp + 0x14]
mov byte [ebp + 0x1b], al
lea eax, [ebp + 0x1b]
push eax
call fcn.00412248
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x41237a
mov byte [ebp + 0xf], 1
push esi
call fcn.00512864
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x4123af
xor al, al
pop ebx
leave
ret 0x14
Function at 0x4123b4
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
sub esp, 0x400
lea ebp, [esp - 4]
mov eax, dword [0x599274]
xor eax, ebp
mov dword [ebp + 0x400], eax
push 0x44
mov eax, 0x53d266
call fcn.005122a7
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.004027d0
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x10], ebx
je 0x4124ce
cmp dword [esi + 0x14], ebx
je 0x4124ce
push 8
pop eax
cmp byte [ebp + 0x418], bl
je 0x412425
mov eax, pe_nt_image_headers32
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x18], ebx
jb 0x412433
mov esi, dword [esi + 4]
jmp 0x412436
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 0x4124c0
push 0x3ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.00512510
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 0x4124ab
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.004028a1
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00402a53
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 0x412475
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.00402802
jmp 0x4124da
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.00402802
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], bl
call fcn.0040288f
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.00512298
add ebp, 0x404
leave
ret 0x10
Function at 0x41de33
Capabilities:
Set current directory

Disassembly:
push 0x1c
mov eax, 0x53e8b5
call fcn.005122a7
mov esi, ecx
mov eax, dword [esi + 0x24]
test eax, eax
je 0x41de53
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
and dword [esi + 0x24], 0
cmp dword [esi + 0x3c], 0
je 0x41de78
lea edi, [esi + 0x28]
cmp dword [edi + 0x18], 0x10
jb 0x41de67
mov eax, dword [edi + 4]
jmp 0x41de6a
lea eax, [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, edi
call fcn.0040d233
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.0041db19
and dword [ebp - 4], 0
cmp dword [eax + 0x18], 0x10
jb 0x41de92
mov eax, dword [eax + 4]
jmp 0x41de95
add eax, 4
push eax
call fcn.00512eec
or dword [ebp - 4], 0xffffffff
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00402a53
call fcn.0051237f
ret

Function at 0x41fa16
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jae 0x41fa40
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 + 0x59b798]
xor eax, esi
inc edx
mov dword [ecx], eax
cmp edx, dword [esp + 0xc]
jb 0x41fa21
pop esi
ret 8

Function at 0x41fb50
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x59bb98], 0
jne 0x41fbb2
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 0x41fb75
xor eax, esi
test esi, eax
je 0x41fb82
add eax, eax
xor eax, 0x4c11db7
jmp 0x41fb84
add eax, eax
shr cl, 1
jne 0x41fb6c
push eax
call fcn.0041f993
push dword [ebp - 4]
mov edi, eax
call fcn.0041f9b7
inc byte [ebp - 4]
movzx eax, al
pop ecx
pop ecx
mov dword [eax*4 + 0x59b798], edi
jne 0x41fb68
pop edi
mov byte [0x59bb98], 1
pop esi
leave
ret

Function at 0x422191
Capabilities:
Set file attributes

Disassembly:
push 4
mov eax, 0x53f32a
call fcn.005122da
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
je 0x4221cd
cmp dword [eax + 0x18], 0x10
jb 0x4221b5
mov eax, dword [eax + 4]
jmp 0x4221b8
add eax, 4
push 1
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor ecx, ecx
cmp eax, 1
sete cl
mov al, cl
jmp 0x4221ea
cmp dword [eax + 0x18], 0x10
jb 0x4221d8
mov eax, dword [eax + 4]
jmp 0x4221db
add eax, 4
push 0x80
jmp 0x4221ba
call fcn.0051237f
ret
Function at 0x423287
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x599274]
xor eax, ebp
mov dword [ebp + 0x64], eax
mov eax, dword [ebp + 0x78]
push ebx
mov ebx, dword [ebp + 0x70]
push esi
mov esi, dword [ebp + 0x7c]
xor edx, edx
push edi
mov edi, dword [ebp + 0x74]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], eax
cmp dword [ebx], edx
je 0x4233b6
cmp dword [edi + 0x14], edx
je 0x4233b6
cmp eax, edx
je 0x4233b6
cmp esi, edx
je 0x4233b6
cmp dword [0x59be9c], edx
jne 0x42331c
push 0x90
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.00512510
add esp, 0xc
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x30], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x2c], 6
mov ecx, dword [ebp - 0x38]
mov dword [0x59be9c], 2
jb 0x42331c
mov dword [0x59be9c], 0x22
cmp dword [ecx + 0x18], 0x10
jb 0x423327
mov eax, dword [ecx + 4]
jmp 0x42332a
lea eax, [ecx + 4]
push dword [0x59be9c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x4233b6
cmp dword [edi + 0x18], 0x10
mov byte [ebp - 0x31], 0
jb 0x42334f
mov edi, dword [edi + 4]
jmp 0x423352
add edi, 4
movzx ecx, word [ebx]
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
je 0x4233a8
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4233a8
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
inc eax
push eax
call fcn.004ff6f0
pop ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
test eax, eax
je 0x4233a8
mov edx, dword [esi]
mov byte [eax + edx], 0
push dword [esi]
push ebx
push dword [ecx]
call fcn.00513600
add esp, 0xc
mov byte [ebp - 0x31], 1
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, byte [ebp - 0x31]
jmp 0x4233b8
xor al, al
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00512298
add ebp, 0x68
leave
ret 0x10