joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421c68
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
mov ebx, 0x58e438
mov eax, dword [ebp + 8]
push eax
call fcn.004215f4
pop ecx
lea eax, [ebp - 0x2c]
call fcn.0040452c
cmp dword [ebp - 0x20], 0
je 0x421ca7
mov ecx, 0x242010
mov edx, 0x421ec8
mov eax, 0x421f28
call fcn.0041d1c4
jmp 0x421eb3
xor eax, eax
push ebp
push 0x421eac
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
push 4
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x10]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x421e8b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 4
mov eax, dword [ebp - 4]
call fcn.0041234c
test al, al
je 0x421cfe
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0xc
call fcn.0041234c
test al, al
jne 0x421d0d
mov eax, 0x58e450
call fcn.004049d0
jmp 0x421db6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, 0x18
call fcn.0041234c
test al, al
je 0x421d8c
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov esi, eax
mov edi, ebx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebx + 0xc]
test esi, esi
je 0x421d47
mov edx, 1
mov eax, esi
call fcn.00412398
test al, al
jne 0x421d4e
mov dword [ebx + 0xc], 0x41f6cc
mov esi, dword [ebx + 0x10]
test esi, esi
je 0x421d65
mov edx, 1
mov eax, esi
call fcn.00412398
test al, al
jne 0x421d6c
mov dword [ebx + 0x10], 0x41f6f0
mov esi, dword [ebx + 0x14]
test esi, esi
je 0x421d83
mov edx, 1
mov eax, esi
call fcn.00412398
test al, al
jne 0x421db6
mov dword [ebx + 0x14], 0x41f73c
jmp 0x421db6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov edx, dword [eax]
mov dword [ebx], edx
mov edx, dword [eax + 4]
mov dword [ebx + 4], edx
mov edx, dword [eax + 8]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], 0x41f6cc
mov dword [ebx + 0x10], 0x41f6f0
mov dword [ebx + 0x14], 0x41f73c
test byte [0x58e404], 0x80
je 0x421e33
mov eax, dword [ebx]
call fcn.0040a13c
mov esi, eax
mov eax, 0x4049b4
call fcn.0040a13c
cmp esi, eax
jne 0x421e33
mov eax, dword [ebx + 4]
call fcn.0040a13c
mov esi, eax
mov eax, 0x4049b4
call fcn.0040a13c
cmp esi, eax
jne 0x421e33
mov eax, dword [ebx + 8]
call fcn.0040a13c
mov esi, eax
mov eax, 0x4049b4
call fcn.0040a13c
cmp esi, eax
jne 0x421e33
mov eax, dword [ebp + 8]
push eax
call fcn.00421620
pop ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004218d0
pop ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004215f4
pop ecx
call fcn.00407404
call fcn.00407404
jmp 0x421eb3
mov esi, ebx
mov edi, 0x58e450
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
call fcn.004049e4
mov eax, dword [ebp + 8]
push eax
call fcn.00421620
pop ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004217ac
pop ecx
mov eax, dword [ebp + 8]
push eax
call fcn.004215f4
pop ecx
mov byte [0x69944e], 1
mov byte [0x69944f], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x421e92
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_UnmapViewOfFile
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a1f8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov esi, eax
test esi, esi
jne 0x42a20e
call fcn.00412f24
mov esi, eax
xor ebx, ebx
xor ecx, ecx
push ebp
push 0x42a28e
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov edx, esi
cmp word [edx], 0x5a4d
jne 0x42a284
mov eax, edx
add eax, 0x3c
mov eax, dword [eax]
test eax, eax
je 0x42a284
mov edi, edx
add edi, eax
mov edx, dword [edi]
cmp edx, 0x4550
jne 0x42a284
lea edx, [ebp - 0x14]
add edi, 4
mov eax, edi
mov ecx, 0x14
call fcn.00404bcc
test byte [ebp - 1], 0x20
je 0x42a282
push 0xa
push 0x42a2a4
push esi
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x42a27e
push 0xa
push 0x42a2bc
push esi
call sub.kernel32.dll_FindResourceW
test eax, eax
je 0x42a27e
mov bl, 3
jmp 0x42a284
mov bl, 2
jmp 0x42a284
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x42a29a
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42a9e0
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
test eax, eax
jns 0x42a9fa
call fcn.00405fc0
push eax
push 0x42a9a0
call sub.user32.dll_EnumWindows
mov eax, dword [ebp - 4]
pop ecx
pop ecx
pop ebp
ret
Function at 0x42cd80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov ebx, eax
xor esi, esi
mov edx, 0x40
mov eax, ebx
call fcn.0042b0c4
test al, al
je 0x42cdc7
mov eax, ebx
cmp word [eax], 0x5a4d
jne 0x42cdc7
cmp dword [eax + 0x3c], 0
je 0x42cdc7
mov esi, dword [eax + 0x3c]
add esi, ebx
mov edx, 0xf8
mov eax, esi
call fcn.0042b0c4
test al, al
je 0x42cdc5
cmp dword [esi], 0x4550
je 0x42cdc7
xor esi, esi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

Function at 0x441284
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4412dd
test eax, edx
je 0x4412e0
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x44129b
movzx eax, word [eax]
sub eax, ecx
jmp 0x4412c2
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4412c3
add ecx, 4
js 0x4412b3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x4412c0
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x4412c2
xor eax, eax
ret
test eax, eax
je 0x4412ec
test edx, edx
jne 0x44128c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x4423a8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.0040895c
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x442412
test ah, 4
je 0x44240b
test bl, bl
jne 0x4423d0
mov al, 1
jmp 0x442439
test al, 0x10
je 0x4423d8
xor eax, eax
jmp 0x442439
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4423fc
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x442439
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x442439
test al, 0x10
sete al
jmp 0x442439
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x442433
cmp ebx, 3
je 0x442433
cmp ebx, 0x7b
je 0x442433
mov eax, esi
call fcn.00442368
test al, al
jne 0x442437
xor eax, eax
jmp 0x442439
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x442440
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040895c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4424e7
test esi, 0x400
jne 0x44247c
test esi, 0x10
setne bl
jmp 0x442501
cmp byte [esp], 0
je 0x4424b0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x442501
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x442501
test esi, 0x10
je 0x4424bc
mov bl, 1
jmp 0x442501
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4424e3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x442501
mov bl, 1
jmp 0x442501
call sub.kernel32.dll_GetLastError_1
cmp eax, 2
je 0x4424fb
cmp eax, 3
je 0x4424fb
cmp eax, 0x7b
jne 0x4424ff
xor ebx, ebx
jmp 0x442501
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x445f34
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x445f6d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00407db0
jmp 0x445f76
mov eax, ebx
mov edx, esi
call fcn.00408008
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x445f80
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x445fa2
movzx eax, word [esp]
jmp 0x445fa4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x446c60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x446d85
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00446a70
mov esi, eax
mov eax, dword [0x595abc]
cmp byte [eax], 0
je 0x446d2d
mov eax, dword [0x595788]
call fcn.00405244
call fcn.00404af4
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x446c38]
call fcn.00409fa8
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x446da0
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x446d69
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x595724]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x598c38]
call fcn.0040a1b4
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x446d8c
lea eax, [ebp - 4]
mov edx, dword [0x446c38]
call fcn.0040a0cc
ret

Function at 0x448774
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00408124
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040bcdc
mov edi, eax
cmp edi, 0x104
jbe 0x44871f
mov eax, edi
add eax, eax
call fcn.00404930
mov esi, eax
jmp 0x448721
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040bcdc
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x44875a
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x448744
mov eax, esp
cmp esi, eax
je 0x448767
mov eax, esi
call fcn.0040494c
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4487a0
cmp bl, 0
je 0x44879c
cmp bl, 0x41
jl 0x448797
cmp bl, 0x5a
jg 0x448797
or bl, 0x20
xor al, bl
inc esi
jmp 0x44877b
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x4486e0

Function at 0x448f50
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.00408a10
add esp, 0x800
pop ebx
ret
Function at 0x449244
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffff800
mov esi, edx
mov edi, eax
mov eax, esi
call fcn.00407c28
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040895c
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x449289
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.00407db0
jmp 0x4492a2
mov edx, ebx
dec edx
mov eax, esi
call fcn.00408ae8
push ebx
mov eax, dword [esi]
call fcn.0040895c
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x46e6d0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x46e76e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x46e732
cmp byte [ebx + 0x10], 0
jne 0x46e732
cmp byte [ebx + 0x3c], 0
jne 0x46e732
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x46e753
lea edx, [ebp - 4]
mov eax, dword [0x595a38]
call fcn.0040bc48
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x45ed70]
call fcn.00446ddc
call fcn.00407310
jmp 0x46e753
lea edx, [ebp - 8]
mov eax, dword [0x595a38]
call fcn.0040bc48
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x45ed70]
call fcn.00446ddc
call fcn.00407310
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46e775
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c88
ret

Function at 0x46f07c
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x46f0ca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0046e61c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x46f0e3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x46f0ec
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0046e61c
dec esi
jne 0x46f10e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x4a921c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x44ad94]
call fcn.0040923c
xor eax, eax
push ebp
push 0x4a9366
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x58f9d0], 0
jne 0x4a9270
mov ecx, dword [0x5955d0]
mov dl, 1
mov eax, dword [0x43c378]
call fcn.00446f10
call fcn.00407310
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.004052b4
mov eax, ebx
call fcn.004087c0
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4a9374
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040b678
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4a92b7
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4a930c
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4a9305
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.00408a4c
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00408a10
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.00441514
test eax, eax
jne 0x4a9305
mov ebx, 0x15
jmp 0x4a9311
mov ebx, 0x10
jmp 0x4a9311
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x58f9d0]
call fcn.004a9058
mov eax, dword [ebp - 4]
call fcn.004a9058
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040b690
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a936d
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00407c88
lea eax, [ebp - 0xc]
mov edx, dword [0x44ad94]
call fcn.00409314
ret
Function at 0x4afe98
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc4
push ebx
xor ecx, ecx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x4b0013
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00408050
mov eax, dword [ebp - 4]
call fcn.004af7f8
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4afeea
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00408dd8
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 4]
mov dword [ebp - 0x18], eax
mov edx, ebx
mov eax, dword [ebp - 0xc]
call fcn.004b0a8c
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4affc9
xor eax, eax
push ebp
push 0x4affc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004afa98
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004b0048
test al, al
je 0x4affa0
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00407db0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4affa0
mov eax, dword [ebp - 0x34]
inc eax
mov dword [ebp - 0x10], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.0040895c
push eax
push ebx
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004af9f8
test al, al
je 0x4aff9a
mov eax, dword [ebp - 8]
call fcn.0040895c
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.004089bc
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004afe98
dec ebx
cmp ebx, 0xffffffff
jne 0x4aff49
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4affc9
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004afa98
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
mov eax, dword [ebp - 4]
call fcn.0040895c
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004afa84
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004af9f8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b001a
lea eax, [ebp - 0x3c]
call fcn.00407c28
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407c88
ret

Function at 0x4b0968
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.004af810
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.0040895c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004af9f8
test al, al
jne 0x4b09d0
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x595934]
mov dl, 1
mov eax, dword [0x4ae61c]
call fcn.00446fe0
call fcn.00407310
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4b09dc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.0040895c
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004af9f8
test al, al
jne 0x4b0a3d
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x595c80]
mov dl, 1
mov eax, dword [0x4ae61c]
call fcn.00446fe0
call fcn.00407310
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004af840
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4b103c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4b1164
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, esi
call fcn.004afa98
xor eax, eax
push ebp
push 0x4b113f
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004b0048
test al, al
je 0x4b1123
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004b0f1c
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00407db0
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4b1123
inc ebx
xor edi, edi
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0xc], eax
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040895c
push eax
push edi
push esi
call sub.advapi32.dll_RegEnumValueW
mov edx, eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
call fcn.004af9f8
test al, al
je 0x4b111f
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040895c
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.004089bc
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004b0f1c
pop ecx
inc edi
dec ebx
jne 0x4b10c7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b1146
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004afa98
ret