joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425818
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
mov byte [ebp - 1], 0
xor edx, edx
mov eax, 6
call fcn.0042ead4
test al, al
je 0x4258e0
xor edx, edx
mov eax, ebx
call fcn.00427598
test al, al
je 0x4258e0
mov eax, ebx
call fcn.004272c8
test al, 0x20
je 0x4258e0
mov eax, ebx
call fcn.0040b3d8
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4258e0
test ah, 4
je 0x4258e0
test al, 0x10
je 0x42587f
mov edi, 0x2000000
jmp 0x425881
xor edi, edi
push 0
push edi
push 3
push 0
push 1
push 0x80000000
mov eax, ebx
call fcn.0040b3d8
push eax
call sub.kernel32.dll_CreateFileW_1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4258e0
xor eax, eax
push ebp
push 0x4258d9
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, esi
mov ecx, edi
mov eax, dword [ebp - 8]
call fcn.004255c8
mov byte [ebp - 1], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4258e0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
movzx eax, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x425be8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x425c41
test eax, edx
je 0x425c44
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x425bff
movzx eax, word [eax]
sub eax, ecx
jmp 0x425c26
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 0x425c27
add ecx, 4
js 0x425c17
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x425c24
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x425c26
xor eax, eax
ret
test eax, eax
je 0x425c50
test edx, edx
jne 0x425bf0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4272c8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42742c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x104
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x427268]
call fcn.0040ca8c
add esp, 4
push 0x104
lea eax, [ebp - 0xc]
mov ecx, 1
mov edx, dword [0x427298]
call fcn.0040ca8c
add esp, 4
movzx ebx, byte [0x42743c]
mov dl, 1
mov eax, esi
call fcn.00427630
test al, al
jne 0x427342
mov dl, 1
mov eax, esi
call fcn.00427598
test al, al
je 0x4273cc
lea edx, [ebp - 0x1c]
mov eax, esi
call fcn.00427a44
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 4]
call fcn.0042f098
push 0x104
mov eax, dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x104
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b3d8
mov esi, eax
push esi
call sub.kernel32.dll_GetVolumeInformationW
test eax, eax
je 0x4273c7
test byte [ebp - 0x14], 1
je 0x427392
or bl, 1
test byte [ebp - 0x14], 2
je 0x42739b
or bl, 2
test byte [ebp - 0x14], 0x80
je 0x4273a4
or bl, 0x20
push esi
call sub.kernel32.dll_GetDriveTypeW
sub eax, 2
je 0x4273b8
dec eax
je 0x4273bd
dec eax
je 0x4273c2
dec eax
jne 0x4273ed
or bl, 0x10
jmp 0x4273ed
or bl, 4
jmp 0x4273ed
or bl, 8
jmp 0x4273ed
call fcn.0042f828
lea edx, [ebp - 0x20]
mov eax, dword [0x991150]
call fcn.0040e960
mov ecx, dword [ebp - 0x20]
mov dl, 1
mov eax, dword [0x420488]
call fcn.0042db18
call fcn.00409990
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x427433
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.0040a370
lea eax, [ebp - 0xc]
mov edx, dword [0x427298]
call fcn.0040cbb0
lea eax, [ebp - 8]
mov edx, dword [0x427268]
call fcn.0040cbb0
lea eax, [ebp - 4]
call fcn.0040a310
ret

Function at 0x427498
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x4274c5
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 4
Function at 0x427598
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.0040b3d8
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x427602
test ah, 4
je 0x4275fb
test bl, bl
jne 0x4275c0
mov al, 1
jmp 0x427629
test al, 0x10
je 0x4275c8
xor eax, eax
jmp 0x427629
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4275ec
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x427629
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x427629
test al, 0x10
sete al
jmp 0x427629
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x427623
cmp ebx, 3
je 0x427623
cmp ebx, 0x7b
je 0x427623
mov eax, esi
call fcn.00427558
test al, al
jne 0x427627
xor eax, eax
jmp 0x427629
mov al, 1
pop edi
pop esi
pop ebx
ret

Function at 0x427630
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.0040b3d8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x4276d7
test esi, 0x400
jne 0x42766c
test esi, 0x10
setne bl
jmp 0x4276fb
cmp byte [esp], 0
je 0x4276a0
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4276fb
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x4276fb
test esi, 0x10
je 0x4276ac
mov bl, 1
jmp 0x4276fb
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x4276d3
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x4276fb
mov bl, 1
jmp 0x4276fb
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x4276f5
cmp eax, 3
je 0x4276f5
cmp eax, 0x7b
je 0x4276f5
cmp eax, 0x35
je 0x4276f5
cmp eax, 0x15
jne 0x4276f9
xor ebx, ebx
jmp 0x4276fb
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x427704
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4277a9
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0040b3d8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
test edi, 0x400
setne al
test al, bl
je 0x42778e
or edi, 0xffffffff
lea edx, [ebp - 4]
mov eax, esi
call fcn.00425818
test al, al
je 0x42778e
mov eax, dword [ebp - 4]
call fcn.00427c2c
test al, al
je 0x42777e
lea edx, [ebp - 0xc]
mov eax, esi
call fcn.004279a0
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.0042f098
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, dword [ebp - 4]
call fcn.0040b644
mov eax, dword [ebp - 4]
call fcn.0040b3d8
push eax
call sub.kernel32.dll_GetFileAttributesW
mov edi, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4277b0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a370
ret
Function at 0x4277bc
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.0040b3d8
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x427811
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x42780b
test ah, 4
je 0x42780b
test al, 0x10
je 0x42780b
mov eax, esi
call fcn.0040b3d8
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x427811
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x42cc50
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 0x42cc89
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.0040a498
jmp 0x42cc92
mov eax, ebx
mov edx, esi
call fcn.0040a6f0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42cc9c
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 0x42ccbe
movzx eax, word [esp]
jmp 0x42ccc0
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x42d9a8
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 0x42dacd
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0042d7b0
mov esi, eax
mov eax, dword [0x990f3c]
cmp byte [eax], 0
je 0x42da75
mov eax, dword [0x990784]
call fcn.00407574
call fcn.00406690
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 [0x42d978]
call fcn.0040ca8c
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 0x42dae8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x42dab1
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x99064c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x994c50]
call fcn.0040cdd8
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 0x42dad4
lea eax, [ebp - 4]
mov edx, dword [0x42d978]
call fcn.0040cbb0
ret
Function at 0x42eaf4
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x42ebca
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a738
lea eax, [ebp - 4]
call fcn.0040a8ec
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b3d8
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x42ebb4
mov eax, ebx
call fcn.0040651c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x42ebad
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.0040b3d8
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x42eb97
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x42ebdc
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x42eb97
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ebb4
mov eax, dword [ebp - 0x10]
call fcn.00406538
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42ebd1
lea eax, [ebp - 4]
call fcn.0040a310
ret

Function at 0x42f66c
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.0040a82c
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040e9f4
mov edi, eax
cmp edi, 0x104
jbe 0x42f613
mov eax, edi
add eax, eax
call fcn.0040651c
mov esi, eax
jmp 0x42f615
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.0040e9f4
mov eax, esi
push eax
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x42f650
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 0x42f63a
mov eax, esp
cmp esi, eax
je 0x42f65d
mov eax, esi
call fcn.00406538
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 0x42f698
cmp bl, 0
je 0x42f694
cmp bl, 0x41
jl 0x42f68f
cmp bl, 0x5a
jg 0x42f68f
or bl, 0x20
xor al, bl
inc esi
jmp 0x42f673
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x42f5d4

Function at 0x42ff70
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.0040b494
add esp, 0x800
pop ebx
ret
Function at 0x430448
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.0040a310
push 0x400
lea eax, [esp + 4]
push eax
mov eax, edi
call fcn.0040b3d8
mov ebp, eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
mov ebx, eax
cmp ebx, 0x400
jge 0x43048d
mov edx, esp
mov eax, esi
mov ecx, ebx
call fcn.0040a498
jmp 0x4304a6
mov edx, ebx
dec edx
mov eax, esi
call fcn.0040b56c
push ebx
mov eax, dword [esi]
call fcn.0040b3d8
push eax
push ebp
call sub.kernel32.dll_GetEnvironmentVariableW
add esp, 0x800
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x440d64
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x440db6
test eax, edx
je 0x440db9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x440d79
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x440d9f
add ecx, 4
js 0x440d8f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x440d9c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x440dc5
test edx, edx
jne 0x440d6c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4c89cc
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4c8a6a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4c8a2e
cmp byte [ebx + 0x10], 0
jne 0x4c8a2e
cmp byte [ebx + 0x3c], 0
jne 0x4c8a2e
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4c8a4f
lea edx, [ebp - 4]
mov eax, dword [0x990e2c]
call fcn.0040e960
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x49cad8]
call fcn.0042db18
call fcn.00409990
jmp 0x4c8a4f
lea edx, [ebp - 8]
mov eax, dword [0x990e2c]
call fcn.0040e960
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x49cad8]
call fcn.0042db18
call fcn.00409990
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c8a71
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a370
ret

Function at 0x4c9408
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 0x4c9456
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 + 8]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.004c884c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c946f
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4c9478
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.004c884c
dec esi
jne 0x4c949a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4cbb9c
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x99708c
cmp dword [edi], 0
jne 0x4cbc18
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x997088]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x983970
mov ecx, 2
call fcn.0040675c
mov edx, 0x4cbb74
lea eax, [esi + 5]
call fcn.004cbb94
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004cbb94
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4cbbed
mov dword [0x997088], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x500abc
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 0x500c77
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a738
mov eax, dword [ebp - 4]
call fcn.0050040c
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x500b0e
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040b7fc
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.005016f8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x500bed
xor eax, eax
push ebp
push 0x500be6
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.005006ac
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.00500cac
test al, al
je 0x500bc4
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040a498
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x500bc4
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.0040b3d8
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.0050060c
test al, al
je 0x500bbe
mov eax, dword [ebp - 8]
call fcn.0040b3d8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040b440
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.00500abc
dec ebx
cmp ebx, 0xffffffff
jne 0x500b6d
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500bed
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.005006ac
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x9970bc], 0
je 0x500c2d
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040b3d8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00500698
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0050060c
mov ebx, eax
jmp 0x500c54
mov eax, dword [ebp - 4]
call fcn.0040b3d8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.00500698
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.0050060c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500c7e
lea eax, [ebp - 0x3c]
call fcn.0040a310
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040a370
ret
Function at 0x500d18
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x500dd0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00500cac
test al, al
je 0x500db2
mov ecx, dword [ebp - 0x24]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040a498
mov ebx, dword [ebp - 0x28]
dec ebx
test ebx, ebx
jl 0x500db2
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x24]
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.0040b3d8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.0040b3d8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040b440
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x500d6b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500dd7
lea eax, [ebp - 0x2c]
call fcn.0040a310
lea eax, [ebp - 4]
call fcn.0040a310
ret

Function at 0x500f88
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x501040
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax]
call dword [edx + 0x48]
lea edx, [ebp - 0x28]
mov eax, edi
call fcn.00500cac
test al, al
je 0x501022
mov ecx, dword [ebp - 0x1c]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0040a498
mov ebx, dword [ebp - 0x20]
dec ebx
test ebx, ebx
jl 0x501022
inc ebx
xor esi, esi
mov eax, dword [ebp - 0x1c]
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.0040b3d8
push eax
push esi
mov eax, dword [edi + 4]
push eax
call sub.advapi32.dll_RegEnumValueW
mov eax, dword [ebp - 4]
call fcn.0040b3d8
mov edx, eax
lea eax, [ebp - 0x2c]
call fcn.0040b440
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
call dword [ecx + 0x3c]
inc esi
dec ebx
jne 0x500fdb
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x501047
lea eax, [ebp - 0x2c]
call fcn.0040a310
lea eax, [ebp - 4]
call fcn.0040a310
ret