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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
jne 0x412e78
xor al, al
jmp 0x412ef7
push esi
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x412ecb
push str.RegDeleteKeyExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412ec4
mov ecx, dword [ebp + 0xc]
cmp dword [ecx + 0x18], 0x10
jb 0x412ea8
mov ecx, dword [ecx + 4]
jmp 0x412eab
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 0x412ee6
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x18], 0x10
jb 0x412ed9
mov eax, dword [eax + 4]
jmp 0x412edc
add eax, 4
push eax
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
je 0x412ef3
cmp eax, 2
je 0x412ef3
xor eax, eax
jmp 0x412ef6
xor eax, eax
inc eax
pop esi
pop ebp
ret 0xc

Function at 0x412f51
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x412fe7
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x412fe7
push 2
pop ecx
cmp byte [ebp + 0x18], bl
je 0x412f75
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x412f83
mov eax, dword [eax + 4]
jmp 0x412f86
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 0x412fe7
mov eax, dword [ebp + 0x14]
cmp dword [eax + 0x18], 0x10
mov edx, dword [eax + 0x14]
jb 0x412faf
mov eax, dword [eax + 4]
jmp 0x412fb2
add eax, 4
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0x18], 0x10
jb 0x412fc0
mov ecx, dword [ecx + 4]
jmp 0x412fc3
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 0x412fe9
xor al, al
pop ebx
pop ebp
ret 0x14

Function at 0x412fee
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x413070
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x413070
push 2
pop ecx
cmp byte [ebp + 0x18], bl
je 0x41300e
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x41301c
mov eax, dword [eax + 4]
jmp 0x41301f
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 0x413070
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x413045
mov eax, dword [eax + 4]
jmp 0x413048
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 0x413072
xor al, al
pop ebx
pop ebp
ret 0x14
Function at 0x413077
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push esi
cmp dword [ebp + 8], ecx
je 0x413141
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ecx
je 0x413141
push 2
pop edx
cmp byte [ebp + 0x18], cl
je 0x41309f
mov edx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], ecx
jb 0x4130ad
mov eax, dword [eax + 4]
jmp 0x4130b0
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 0x413141
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.0051889c
pop ecx
mov dword [ebp + 0x18], eax
test eax, eax
je 0x413132
xor ebx, ebx
test esi, esi
jbe 0x4130fe
push ebx
mov ecx, edi
call fcn.00412c86
mov al, byte [eax]
mov ecx, dword [ebp + 0x18]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, esi
jb 0x4130e9
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x41310c
mov eax, dword [eax + 4]
jmp 0x41310f
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.0052ba64
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x413143
xor al, al
pop esi
pop ebp
ret 0x14

Function at 0x413148
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4131c9
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4131c9
push 2
pop ecx
cmp byte [ebp + 0x14], bl
je 0x413168
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x413176
mov eax, dword [eax + 4]
jmp 0x413179
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 0x4131ba
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x41319e
mov eax, dword [eax + 4]
jmp 0x4131a1
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 0x4131c3
cmp esi, 2
je 0x4131c3
xor eax, eax
jmp 0x4131c6
xor eax, eax
inc eax
pop esi
jmp 0x4131cb
xor al, al
pop ebx
pop ebp
ret 0x10
Function at 0x4131d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x413249
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x413249
xor ecx, ecx
inc ecx
cmp byte [ebp + 0x14], bl
je 0x4131f0
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x14], ebx
jb 0x4131fe
mov eax, dword [eax + 4]
jmp 0x413201
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 0x413249
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x413223
mov eax, dword [eax + 4]
jmp 0x413226
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 0x41324b
xor al, al
pop ebx
pop ebp
ret 0x10

Function at 0x413250
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 0x41331d
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x41331d
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x413281
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0x18], ebx
jb 0x41328f
mov eax, dword [eax + 4]
jmp 0x413292
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 0x413318
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 0x4132be
mov eax, dword [edi]
jmp 0x4132c0
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 0x41330d
cmp dword [ebp + 8], 4
jne 0x41330d
cmp dword [esi + 0x18], 0x10
mov dword [ebp + 0x10], ebx
jb 0x4132e9
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 0x41330d
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 0x41331f
xor al, al
pop ebx
leave
ret 0x14
Function at 0x4133c6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
cmp dword [ebp + 8], esi
je 0x41353a
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], esi
je 0x41353a
cmp byte [ebp + 0x18], 0
push 2
pop ecx
je 0x4133f2
mov ecx, 0x102
cmp dword [eax + 0x18], 0x10
mov dword [ebp + 0xc], esi
jb 0x413400
mov eax, dword [eax + 4]
jmp 0x413403
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 0x41353a
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.00403748
jmp 0x413454
lea ecx, [ebp - 8]
call fcn.004298d5
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.004080d2
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00403748
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00407d3b
test al, al
je 0x413437
mov edi, dword [ebp + 0x18]
inc edi
push edi
call fcn.0051889c
pop ecx
mov dword [ebp + 8], eax
test eax, eax
je 0x41352b
push edi
push 0
push eax
call fcn.0052b710
mov ebx, dword [ebp + 8]
add esp, 0xc
push esi
push dword [esi + 0xc]
lea ecx, [ebp - 8]
call fcn.00403748
jmp 0x4134d9
lea ecx, [ebp - 8]
call fcn.004298d5
cmp dword [eax + 0x18], 0x10
jb 0x4134b6
mov eax, dword [eax + 4]
jmp 0x4134b9
add eax, 4
push eax
push ebx
call fcn.0052cce0
pop ecx
pop ecx
lea ecx, [ebp - 8]
call fcn.004298d5
mov eax, dword [eax + 0x14]
lea ecx, [ebp - 8]
lea ebx, [ebx + eax + 1]
call fcn.004080d2
push esi
push dword [esi + 0x10]
lea ecx, [ebp - 0x10]
call fcn.00403748
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
call fcn.00407d3b
test al, al
je 0x4134a3
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x18], 0x10
jb 0x413503
mov eax, dword [eax + 4]
jmp 0x413506
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.0052ba64
pop ecx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov al, bl
pop ebx
jmp 0x41353c
xor al, al
pop esi
leave
ret 0x14
Function at 0x4135ea
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 0x14]
push ebx
call fcn.0040d864
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x4136e9
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x4136e9
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x41361e
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x41362c
mov eax, dword [eax + 4]
jmp 0x41362f
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 0x4136e4
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 0x41365f
mov eax, dword [edi]
jmp 0x413661
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 0x4136d9
cmp dword [ebp + 8], 1
je 0x413685
cmp dword [ebp + 8], 2
jne 0x4136d9
push dword [ebp + 0x18]
call fcn.0051889c
pop ecx
mov dword [ebp + 0x10], eax
cmp eax, ebx
je 0x4136d9
push dword [ebp + 0x18]
push ebx
push eax
call fcn.0052b710
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x4136aa
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 0x4136d0
push dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
call fcn.00402cde
mov byte [ebp + 0xf], 1
push dword [ebp + 0x10]
call fcn.0052ba64
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x4136eb
xor al, al
pop ebx
leave
ret 0x14
Function at 0x41393f
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.004135af
xor ebx, ebx
cmp dword [ebp + 8], ebx
je 0x413a4a
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], ebx
je 0x413a4a
xor ecx, ecx
inc ecx
mov byte [ebp + 0xf], bl
cmp byte [ebp + 0x18], bl
je 0x413974
mov ecx, 0x101
cmp dword [eax + 0x18], 0x10
mov dword [ebp - 4], ebx
jb 0x413982
mov eax, dword [eax + 4]
jmp 0x413985
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 0x413a45
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 0x4139b5
mov eax, dword [edi]
jmp 0x4139b7
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 0x413a3a
cmp dword [ebp - 8], 3
jne 0x413a3a
push dword [ebp + 8]
call fcn.0051889c
pop ecx
mov dword [ebp + 0x18], eax
cmp eax, ebx
je 0x413a3a
push dword [ebp + 8]
push ebx
push eax
call fcn.0052b710
add esp, 0xc
cmp dword [esi + 0x18], 0x10
jb 0x4139fa
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 0x413a33
cmp dword [ebp + 8], ebx
jbe 0x413a2f
mov al, byte [ebx + esi]
mov ecx, dword [ebp + 0x14]
mov byte [ebp + 0x1b], al
lea eax, [ebp + 0x1b]
push eax
call fcn.004138e5
inc ebx
cmp ebx, dword [ebp + 8]
jb 0x413a17
mov byte [ebp + 0xf], 1
push esi
call fcn.0052ba64
pop ecx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov al, byte [ebp + 0xf]
jmp 0x413a4c
xor al, al
pop ebx
leave
ret 0x14
Function at 0x413a51
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, 0x5570b9
call fcn.0052b4a7
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.004029ad
xor edi, edi
inc edi
mov dword [ebp - 4], edi
cmp dword [ebp - 0x10], ebx
je 0x413b6b
cmp dword [esi + 0x14], ebx
je 0x413b6b
push 8
pop eax
cmp byte [ebp + 0x418], bl
je 0x413ac2
mov eax, pe_nt_image_headers32
cmp dword [esi + 0x18], 0x10
mov dword [ebp - 0x18], ebx
jb 0x413ad0
mov esi, dword [esi + 4]
jmp 0x413ad3
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 0x413b5d
push 0x3ff
lea eax, [ebp + 1]
push ebx
push eax
mov byte [ebp], bl
call fcn.0052b710
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 0x413b48
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x50]
call fcn.0040229b
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.00402b4d
push ebx
push 1
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.00402cff
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 0x413b12
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.004029df
jmp 0x413b77
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push eax
call fcn.004029df
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], bl
call fcn.00402a6c
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.0052b498
add ebp, 0x404
leave
ret 0x10
Function at 0x41daba
Capabilities:
Encode data using xor

Disassembly:
push 0xc
mov eax, 0x55ed52
call fcn.0052b4a7
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 0x41db5d
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 0x41db62
mov al, byte [0x5c6c34]
test byte [0x5c6c38], 2
jne 0x41dba1
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.004074dc
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.00407504
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 4
mov byte [eax], bl
jb 0x41dbb5
mov eax, dword [ebp - 0x14]
call fcn.0052b57f
ret

Function at 0x4251a8
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jae 0x4251d2
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 0x4251b3
pop esi
ret 8

Function at 0x425266
Capabilities:
Hash data using crc32b

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [0x5c7920], 0
jne 0x4252c8
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 0x42528b
xor eax, esi
test esi, eax
je 0x425298
add eax, eax
xor eax, 0x4c11db7
jmp 0x42529a
add eax, eax
shr cl, 1
jne 0x425282
push eax
call fcn.00425125
push dword [ebp - 4]
mov edi, eax
call fcn.00425149
inc byte [ebp - 4]
movzx eax, al
pop ecx
pop ecx
mov dword [eax*4 + 0x5c7520], edi
jne 0x42527e
pop edi
mov byte [0x5c7920], 1
pop esi
leave
ret
Function at 0x42831a
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x559c12
call fcn.0052b4a7
mov ebx, dword [ebp + 8]
xor esi, esi
mov ecx, ebx
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], esi
call fcn.0040a34a
push esi
push esi
mov dword [ebp - 4], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, str.windir
push edi
mov dword [ebp - 0x18], 1
call esi
mov dword [ebp - 0x14], eax
test eax, eax
jbe 0x428390
push eax
call fcn.0051889c
push dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
push 0
push eax
call fcn.0052b710
add esp, 0x10
push dword [ebp - 0x14]
push dword [ebp - 0x10]
push edi
call esi
lea eax, [ebp - 0x10]
push eax
mov ecx, ebx
call fcn.004280c9
push dword [ebp - 0x10]
call fcn.0052ba64
pop ecx
cmp dword [ebx + 0x14], 0
je 0x4283a2
push str.system32cmd.exe
mov ecx, ebx
call fcn.00428301
mov eax, ebx
call fcn.0052b57f
ret

Function at 0x4283aa
Capabilities:
Set file attributes

Disassembly:
push 4
mov eax, 0x559c2d
call fcn.0052b4da
and dword [ebp - 4], 0
cmp byte [ebp + 0xc], 0
mov eax, dword [ebp + 8]
je 0x4283e6
cmp dword [eax + 0x18], 0x10
jb 0x4283ce
mov eax, dword [eax + 4]
jmp 0x4283d1
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 0x428403
cmp dword [eax + 0x18], 0x10
jb 0x4283f1
mov eax, dword [eax + 4]
jmp 0x4283f4
add eax, 4
push 0x80
jmp 0x4283d3
call fcn.0052b57f
ret
Function at 0x42945e
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x68]
sub esp, 0xa4
mov eax, dword [0x5c4954]
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 0x42958d
cmp dword [edi + 0x14], edx
je 0x42958d
cmp eax, edx
je 0x42958d
cmp esi, edx
je 0x42958d
cmp dword [0x5c7c3c], edx
jne 0x4294f3
push 0x90
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0052b710
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 [0x5c7c3c], 2
jb 0x4294f3
mov dword [0x5c7c3c], 0x22
cmp dword [ecx + 0x18], 0x10
jb 0x4294fe
mov eax, dword [ecx + 4]
jmp 0x429501
lea eax, [ecx + 4]
push dword [0x5c7c3c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x42958d
cmp dword [edi + 0x18], 0x10
mov byte [ebp - 0x31], 0
jb 0x429526
mov edi, dword [edi + 4]
jmp 0x429529
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 0x42957f
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x42957f
push edi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esi], eax
inc eax
push eax
call fcn.0051889c
pop ecx
mov ecx, dword [ebp - 0x3c]
mov dword [ecx], eax
test eax, eax
je 0x42957f
mov edx, dword [esi]
mov byte [eax + edx], 0
push dword [esi]
push ebx
push dword [ecx]
call fcn.0052c940
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 0x42958f
xor al, al
mov ecx, dword [ebp + 0x64]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052b498
add ebp, 0x68
leave
ret 0x10