joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41cf68
Capabilities:
Encode data using base64

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
test esi, esi
jle 0x41d093
lea eax, [esi + 2]
mov ecx, 3
cdq
idiv ecx
mov edx, eax
add edx, edx
add edx, edx
mov eax, edi
xor ecx, ecx
call fcn.004064f8
mov ecx, dword [edi]
mov eax, esi
mov edi, 3
cdq
idiv edi
mov edi, eax
test edi, edi
jle 0x41d005
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
movzx edx, byte [ebx + 2]
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x700c6c]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x700c6c]
mov byte [ecx + 1], dl
mov edx, eax
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + 0x700c6c]
mov byte [ecx + 2], dl
and eax, 0x3f
movzx eax, byte [eax + 0x700c6c]
mov byte [ecx + 3], al
add ecx, 4
add ebx, 3
dec edi
jne 0x41cfa5
mov eax, esi
mov esi, 3
cdq
idiv esi
dec edx
je 0x41d01a
dec edx
je 0x41d04b
jmp 0x41d09a
movzx eax, byte [ebx]
shl eax, 0x10
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x700c6c]
mov byte [ecx], dl
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + 0x700c6c]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
mov byte [ecx + 3], 0x3d
jmp 0x41d09a
movzx eax, byte [ebx]
shl eax, 0x10
movzx edx, byte [ebx + 1]
shl edx, 8
add eax, edx
mov edx, eax
shr edx, 0x12
and edx, 0x3f
movzx edx, byte [edx + 0x700c6c]
mov byte [ecx], dl
mov edx, eax
shr edx, 0xc
and edx, 0x3f
movzx edx, byte [edx + 0x700c6c]
mov byte [ecx + 1], dl
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + 0x700c6c]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
jmp 0x41d09a
mov eax, edi
call fcn.00405b98
pop edi
pop esi
pop ebx
ret
Function at 0x424c30
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x424db9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x424c74
mov eax, ebx
call fcn.00406e0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
jne 0x424caa
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
je 0x424d9e
lea eax, [ebp - 0x10]
mov edx, ebx
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x10]
call fcn.00406358
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x424d9e
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x424cda
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
mov eax, ebx
call fcn.00406e0c
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
jmp 0x424d0c
push 0
push 0x80
push 3
push 0
push 3
push 0x80000000
lea eax, [ebp - 0x14]
mov edx, ebx
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x14]
call fcn.00406358
push eax
call sub.kernel32.dll_CreateFileA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x424d9e
xor eax, eax
push ebp
push 0x424d97
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GetFileSize_1
mov edx, eax
mov eax, esi
xor ecx, ecx
call fcn.004064f8
cmp dword [esi], 0
je 0x424d77
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, esi
xor edx, edx
call fcn.00405dc4
call fcn.00405f5c
push eax
mov eax, dword [esi]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
je 0x424d77
mov eax, esi
xor edx, edx
call fcn.00405dc4
call fcn.00405f5c
cmp eax, dword [ebp - 0xc]
je 0x424d7b
xor eax, eax
jmp 0x424d7d
mov al, 1
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424d9e
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x424dc0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405bbc
ret
Function at 0x42aa28
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov byte [esp + 4], cl
mov dword [esp], edx
mov edi, eax
mov ecx, edi
movzx eax, byte [esp]
mov byte [esp + 5], al
mov edx, edi
shr edx, 8
mov eax, dword [esp]
shr eax, 8
mov byte [esp + 6], al
mov eax, edi
shr eax, 0x10
mov ebx, dword [esp]
shr ebx, 0x10
mov byte [esp + 7], bl
xor esi, esi
cmp byte [esp + 4], 0
je 0x42aabc
movzx ebx, cl
movzx ebp, byte [esp + 5]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42aa80
inc esi
mov cl, 0xff
jmp 0x42aa84
add cl, byte [esp + 5]
movzx ebx, dl
movzx ebp, byte [esp + 6]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42aa9b
inc esi
mov dl, 0xff
jmp 0x42aa9f
add dl, byte [esp + 6]
movzx ebx, al
movzx ebp, byte [esp + 7]
add ebx, ebp
cmp ebx, 0xff
jbe 0x42aab6
inc esi
mov al, 0xff
jmp 0x42aae9
add al, byte [esp + 7]
jmp 0x42aae9
cmp cl, byte [esp + 5]
jae 0x42aac7
inc esi
xor ecx, ecx
jmp 0x42aacb
sub cl, byte [esp + 5]
cmp dl, byte [esp + 6]
jae 0x42aad6
inc esi
xor edx, edx
jmp 0x42aada
sub dl, byte [esp + 6]
cmp al, byte [esp + 7]
jae 0x42aae5
inc esi
xor eax, eax
jmp 0x42aae9
sub al, byte [esp + 7]
dec esi
jle 0x42ab00
movzx ecx, byte [esp + 4]
xor cl, 1
mov edx, dword [esp]
mov eax, edi
call fcn.0042aa28
jmp 0x42ab13
movzx eax, al
shl eax, 0x10
movzx edx, dl
shl edx, 8
add eax, edx
movzx edx, cl
add eax, edx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x42bd14
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42be1f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, 0x10
call fcn.0040b570
mov eax, dword [ebx + 0xc]
mov eax, dword [eax + 0x30]
sub eax, 0x2e
mov dword [esi + 8], eax
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x42bd92
push 0x410
push esi
lea edx, [ebp - 4]
mov eax, ebx
call fcn.0042bf3c
mov eax, dword [ebp - 4]
call fcn.00407100
push eax
lea edx, [ebp - 8]
mov eax, ebx
call fcn.0042bf3c
mov eax, dword [ebp - 8]
call fcn.00406e0c
push eax
push edi
call sub.user32.dll_DrawTextW
jmp 0x42bde4
push 0x410
push esi
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.0042bf3c
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0xc]
call fcn.00405f5c
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.0042bf3c
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x14]
call fcn.00406358
push eax
push edi
call sub.user32.dll_DrawTextA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42be26
lea eax, [ebp - 0x18]
call fcn.00406d70
lea eax, [ebp - 0x14]
call fcn.00405b98
lea eax, [ebp - 0x10]
call fcn.00406d70
lea eax, [ebp - 0xc]
call fcn.00405b98
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406d78
ret

Function at 0x42c2f8
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42c3d7
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebx + 0x14], 0
je 0x42c3b7
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x42c365
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageW
mov edx, eax
inc edx
lea eax, [ebx + 0x50]
call fcn.0040710c
mov eax, dword [ebx + 0x50]
push eax
mov eax, dword [ebx + 0x50]
call fcn.00407100
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageW
mov edx, eax
lea eax, [ebx + 0x50]
call fcn.0040710c
jmp 0x42c3b7
push 0
push 0
push 0xe
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
inc edx
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.004064f8
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405dc4
call fcn.00405f5c
push eax
push 0xd
mov eax, dword [ebx + 0x14]
push eax
call sub.user32.dll_SendMessageA
mov edx, eax
lea eax, [ebp - 4]
xor ecx, ecx
call fcn.004064f8
lea eax, [ebx + 0x50]
mov edx, dword [ebp - 4]
call fcn.00406fac
mov eax, esi
mov edx, dword [ebx + 0x50]
call fcn.00406d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c3de
lea eax, [ebp - 4]
call fcn.00405b98
ret
Function at 0x4368e4
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd4
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x22c], edx
mov dword [ebp - 0x220], edx
mov dword [ebp - 0x224], edx
mov dword [ebp - 0x228], edx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x210], edx
mov dword [ebp - 0x214], edx
mov dword [ebp - 0x218], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x436b56
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x436a22
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathW
test eax, eax
jbe 0x43696a
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406f90
jmp 0x436973
mov eax, ebx
xor edx, edx
call fcn.00406d80
cmp dword [ebx], 0
jne 0x436986
mov ecx, ebx
xor edx, edx
mov eax, 0x1a
call fcn.00438ca4
cmp dword [ebx], 0
je 0x436b12
push 0
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_CreateDirectoryW
mov eax, dword [ebx]
call fcn.00407100
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x4369ba
mov eax, ebx
mov edx, 0x436b70
call fcn.004071a4
push dword [ebx]
lea edx, [ebp - 0x218]
xor eax, eax
call fcn.0043662c
mov eax, dword [ebp - 0x218]
lea edx, [ebp - 0x214]
call fcn.004102a8
mov eax, dword [ebp - 0x214]
lea edx, [ebp - 0x210]
call fcn.004366e0
push dword [ebp - 0x210]
push 0x436b80
mov eax, ebx
mov edx, 3
call fcn.00407348
push 0
mov eax, dword [ebx]
call fcn.00406e0c
push eax
call sub.kernel32.dll_CreateDirectoryW
mov eax, ebx
mov edx, 0x436b70
call fcn.004071a4
jmp 0x436b12
lea eax, [ebp - 0x20a]
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
test eax, eax
jbe 0x436b09
lea eax, [ebp - 0x21c]
lea esi, [ebp - 0x20a]
mov edx, esi
mov ecx, 0
call fcn.00405e7c
mov edx, dword [ebp - 0x21c]
mov eax, ebx
call fcn.00406fac
cmp dword [ebx], 0
je 0x436b12
push 0
push esi
call sub.kernel32.dll_CreateDirectoryA
mov eax, dword [ebx]
call fcn.00407100
mov edx, dword [ebx]
cmp word [edx + eax*2 - 2], 0x5c
je 0x436a8e
mov eax, ebx
mov edx, 0x436b70
call fcn.004071a4
push dword [ebx]
lea edx, [ebp - 0x228]
xor eax, eax
call fcn.0043662c
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x224]
call fcn.004102a8
mov eax, dword [ebp - 0x224]
lea edx, [ebp - 0x220]
call fcn.004366e0
push dword [ebp - 0x220]
push 0x436b80
mov eax, ebx
mov edx, 3
call fcn.00407348
push 0
lea eax, [ebp - 0x22c]
mov edx, dword [ebx]
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x22c]
call fcn.00406358
push eax
call sub.kernel32.dll_CreateDirectoryA
mov eax, ebx
mov edx, 0x436b70
call fcn.004071a4
jmp 0x436b12
mov eax, ebx
xor edx, edx
call fcn.00406d80
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436b5d
lea eax, [ebp - 0x22c]
call fcn.00405b98
lea eax, [ebp - 0x228]
mov edx, 3
call fcn.00406d78
lea eax, [ebp - 0x21c]
call fcn.00405b98
lea eax, [ebp - 0x218]
mov edx, 3
call fcn.00406d78
ret
Function at 0x436b98
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd8c
push ebx
xor eax, eax
mov dword [ebp - 0x274], eax
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x258], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x436de7
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
call fcn.004368e4
cmp dword [ebp - 4], 0
je 0x436db1
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x436cb5
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x436db1
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x258]
mov ecx, 0x436e00
mov edx, dword [ebp - 4]
call fcn.00407264
mov eax, dword [ebp - 0x258]
call fcn.00406e0c
push eax
call sub.kernel32.dll_FindFirstFileW_1
mov ebx, eax
cmp ebx, 0xffffffff
je 0x436ca2
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x228]
mov ecx, 0x104
call fcn.00406f90
mov ecx, dword [ebp - 0x260]
lea eax, [ebp - 0x25c]
mov edx, dword [ebp - 4]
call fcn.00407264
mov eax, dword [ebp - 0x25c]
call fcn.00406e0c
push eax
call sub.kernel32.dll_DeleteFileW
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileW
test eax, eax
jne 0x436c50
push ebx
call sub.kernel32.dll_FindClose_1
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
call sub.kernel32.dll_RemoveDirectoryW
jmp 0x436db1
lea eax, [ebp - 0x264]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x264]
call fcn.00406358
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x436db1
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x268]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00406fd4
lea eax, [ebp - 0x268]
mov edx, 0x436e14
call fcn.00405f90
mov eax, dword [ebp - 0x268]
call fcn.00406358
push eax
call sub.kernel32.dll_FindFirstFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x436d8d
lea eax, [ebp - 0x26c]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00406fd4
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x270]
lea edx, [ebp - 0x254]
add edx, 0x2c
mov ecx, 0x104
push 0
call fcn.00405f00
mov edx, dword [ebp - 0x270]
pop eax
call fcn.00405f90
mov eax, dword [ebp - 0x26c]
call fcn.00406358
push eax
call sub.kernel32.dll_DeleteFileA
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x436d24
push ebx
call sub.kernel32.dll_FindClose_1
lea eax, [ebp - 0x274]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x274]
call fcn.00406358
push eax
call sub.kernel32.dll_RemoveDirectoryA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436dee
lea eax, [ebp - 0x274]
mov edx, 5
call fcn.00405bbc
lea eax, [ebp - 0x260]
mov edx, 3
call fcn.00406d78
lea eax, [ebp - 4]
call fcn.00406d70
ret
Function at 0x436e18
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdec
push ebx
xor edx, edx
mov dword [ebp - 0x214], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x436ebd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0x104
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x436e71
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetComputerNameW
mov eax, ebx
lea edx, [ebp - 0x20e]
mov ecx, 0x105
call fcn.00406f90
jmp 0x436ea4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x20e]
push eax
call sub.kernel32.dll_GetComputerNameA
lea eax, [ebp - 0x214]
lea edx, [ebp - 0x20e]
mov ecx, 0
call fcn.00405e7c
mov edx, dword [ebp - 0x214]
mov eax, ebx
call fcn.00406fac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x436ec4
lea eax, [ebp - 0x214]
call fcn.00405b98
ret
Function at 0x436ecc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
xor eax, eax
push ebp
push 0x437089
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.00406d80
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x436faa
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
mov eax, edi
call fcn.00406e0c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x43706e
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00406e0c
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x436f9c
cmp dword [ebp - 0xc], 0
je 0x436f9c
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x436f96
mov eax, ebx
mov edx, esi
call fcn.00406f3c
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x43706e
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x14]
mov edx, edi
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x14]
call fcn.00406358
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x43706e
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x18]
call fcn.00406358
mov edi, eax
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x437065
cmp dword [ebp - 0xc], 0
je 0x437065
mov eax, dword [ebp - 0xc]
add eax, eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
push 0x40
call sub.kernel32.dll_LocalAlloc_1
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push 0
push edi
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x43705f
lea eax, [ebp - 0x1c]
mov edx, esi
mov ecx, 0
call fcn.00405e7c
mov edx, dword [ebp - 0x1c]
mov eax, ebx
call fcn.00406fac
push esi
call sub.kernel32.dll_LocalFree
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437090
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00405bbc
ret
Function at 0x43709c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ecx
mov edi, edx
mov esi, eax
mov eax, dword [ebp + 8]
call fcn.00406d68
xor eax, eax
push ebp
push 0x43720b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x43714b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov eax, edi
call fcn.00406e0c
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
jne 0x4371e0
lea eax, [ebp + 8]
call fcn.00405d94
call fcn.00407100
add eax, eax
add eax, 2
push eax
mov eax, dword [ebp + 8]
call fcn.00406e0c
push eax
push 1
push 0
mov eax, dword [ebp - 8]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExW
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4371e0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x14]
mov edx, edi
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x14]
call fcn.00406358
push eax
push esi
call sub.advapi32.dll_RegCreateKeyExA
test eax, eax
jne 0x4371e0
lea eax, [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, 0
call fcn.00406fd4
lea eax, [ebp - 4]
xor edx, edx
call fcn.00405dc4
call fcn.00405f5c
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00406358
push eax
push 1
push 0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x18]
call fcn.00406358
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
sete bl
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437212
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.00405bbc
lea eax, [ebp - 4]
call fcn.00405b98
lea eax, [ebp + 8]
call fcn.00406d70
ret
Function at 0x437220
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x43730b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
call sub.kernel32.dll_GetVersion_1
test eax, 0x80000000
jne 0x437293
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
mov eax, edi
call fcn.00406e0c
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4372f0
mov eax, dword [ebp - 4]
call fcn.00406e0c
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteValueW
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
jmp 0x4372f0
lea eax, [ebp - 8]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0xc]
mov edx, edi
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0xc]
call fcn.00406358
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4372f0
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 4]
mov ecx, 0
call fcn.00406fd4
mov eax, dword [ebp - 0x10]
call fcn.00406358
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegDeleteValueA
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x437312
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00405bbc
ret

Function at 0x4379a4
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0041b584
test eax, eax
je 0x437a55
cmp word [eax + 0x18], 0x20b
jne 0x4379e2
add eax, 0x18
add eax, 0x78
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
jmp 0x4379f4
add eax, 0x80
mov edx, dword [eax]
mov esi, edx
add esi, dword [ebp - 4]
add edx, dword [eax + 4]
mov dword [ebp - 0x10], edx
test esi, esi
je 0x437a55
jmp 0x437a4f
mov eax, dword [esi + 0x10]
cmp eax, dword [ebp - 0x10]
jbe 0x437a0b
push ebp
call fcn.004377e4
pop ecx
jmp 0x437a55
cmp dword [esi + 0x10], 0
je 0x437a4c
mov ebx, dword [ebp - 4]
add ebx, dword [esi + 0x10]
jmp 0x437a47
cmp edi, dword [ebx]
jne 0x437a44
lea eax, [ebp - 0xc]
push eax
push 0x40
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x437a44
mov eax, dword [ebp - 8]
mov dword [ebx], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0xc]
push eax
push 4
push ebx
call sub.kernel32.dll_VirtualProtect
add ebx, 4
cmp dword [ebx], 0
jne 0x437a19
add esi, 0x14
cmp dword [esi + 0xc], 0
jne 0x4379fa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret