joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100052fb
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10009d9c], ebx
push esi
push edi
jne 0x1000537b
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100053b6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x10009d9c], eax
je 0x100053b6
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x10009da0], eax
call esi
cmp dword [0x10009c34], 2
mov dword [0x10009da4], eax
jne 0x1000537b
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x10009dac], eax
je 0x1000537b
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x10009da8], eax
mov eax, dword [0x10009da8]
test eax, eax
je 0x100053c0
call eax
test eax, eax
je 0x100053a7
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10009dac]
test eax, eax
je 0x100053a7
test byte [ebp - 8], 1
jne 0x100053c0
cmp dword [0x10009c40], 4
jb 0x100053ba
or byte [ebp + 0x12], 0x20
jmp 0x100053df
xor eax, eax
jmp 0x100053ef
or byte [ebp + 0x12], 4
jmp 0x100053df
mov eax, dword [0x10009da0]
test eax, eax
je 0x100053df
call eax
mov ebx, eax
test ebx, ebx
je 0x100053df
mov eax, dword [0x10009da4]
test eax, eax
je 0x100053df
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10009d9c]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100062ae
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
push 4
pop eax
call fcn.100024c0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10006343
mov edi, dword [ebp - 0x20]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x44]
lea esi, [eax - 1]
not esi
and esi, ebx
sub esi, eax
mov dword [ebp - 4], eax
mov eax, dword [0x10009c34]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
and ecx, 0xffff1000
add ecx, 0x11000
add ecx, edi
cmp esi, ecx
jb 0x10006343
cmp eax, 1
je 0x1000635b
mov ebx, edi
mov edi, 0x1000
push 0x1c
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10006343
add ebx, dword [ebp - 0x18]
test dword [ebp - 0x14], edi
je 0x10006318
test byte [ebp - 0xf], 1
mov ebx, dword [ebp - 0x24]
je 0x1000633f
xor eax, eax
inc eax
jmp 0x10006377
cmp esi, ebx
jae 0x10006347
xor eax, eax
jmp 0x10006377
push 4
push edi
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [0x10009c34]
jmp 0x1000635d
mov ebx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0x103
lea ecx, [ebp - 8]
push ecx
inc eax
push eax
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x54]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x65592162
nop
nop
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42cd70
mov ecx, 0x64a90f8a
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x40716c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00409bf4
test esi, esi
jne 0x4071a2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00409d7c
jmp 0x4071c0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004070b0
mov edi, eax
test esi, esi
je 0x4071c0
cmp dword [ebx], 0
je 0x4071c0
dec esi
jmp 0x4071a9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4071f4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x52e008], 0x8088405
inc edx
mov dword [ebx + 0x52e008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x40880c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
mov ebp, dword [esi + 0x10]
mov eax, esi
call fcn.00408c98
mov byte [esp], al
cmp byte [esp], 0
jne 0x408995
test edi, edi
je 0x408995
mov byte [esp + 1], 0
test ebp, ebp
jle 0x4088d5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
xor eax, eax
mov dword [esp + 0xc], eax
test ebp, ebp
jle 0x4088b0
cmp edi, 0xffffffff
je 0x408871
call sub.kernel32.dll_GetTickCount
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x408871
mov byte [esp], 0
jmp 0x408995
cmp dword [esi], 1
jg 0x4088b0
cmp dword [esi], 0
jne 0x4088a2
xor eax, eax
mov edx, 1
lock cmpxchg dword [esi], edx
test eax, eax
jne 0x4088a2
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
mov byte [esp], 1
jmp 0x408995
lea eax, [esp + 0xc]
call fcn.004084c8
dec ebp
test ebp, ebp
jg 0x408856
cmp edi, 0xffffffff
je 0x4088d5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
ja 0x4088d3
mov byte [esp], 0
jmp 0x408995
sub edi, eax
mov ebx, dword [esi]
test ebx, ebx
je 0x40881a
lea edx, [ebx + 2]
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x4088d5
call sub.kernel32.dll_GetTickCount
mov dword [esp + 4], eax
mov eax, esi
call fcn.00408a04
mov edx, eax
mov ebx, dword [0x5368f8]
mov ecx, edi
xor eax, eax
call dword [ebx + 0x10]
test eax, eax
sete byte [esp]
cmp edi, 0xffffffff
je 0x408939
call sub.kernel32.dll_GetTickCount
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
cmp edi, eax
jbe 0x408937
mov eax, dword [esp + 8]
sub eax, dword [esp + 4]
sub edi, eax
jmp 0x408939
xor edi, edi
cmp byte [esp], 0
je 0x40895f
mov ebx, dword [esi]
test bl, 1
jne 0x408975
mov edx, ebx
sub edx, 2
or edx, 1
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40893f
mov byte [esp + 1], 1
jmp 0x408975
mov ebx, dword [esi]
mov edx, ebx
sub edx, 2
mov eax, ebx
lock cmpxchg dword [esi], edx
cmp ebx, eax
jne 0x40895f
mov byte [esp + 1], 1
cmp byte [esp + 1], 0
je 0x4088ec
cmp byte [esp], 0
je 0x408995
call sub.kernel32.dll_GetCurrentThreadId
mov dword [esi + 8], eax
mov dword [esi + 4], 1
movzx eax, byte [esp]
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4095d8
Capabilities:
Terminate process

Disassembly:
push ecx
push ebx
push esi
push edi
mov ebx, 0x538b98
cmp dword [ebp + 0xc], 2
jl 0x4095ec
mov ebx, 0x538bc8
mov esi, ebx
lea edi, [ebp - 0x40]
mov ecx, 0xc
rep movsd dword es:[edi], dword [esi]
pop dword [ebx + 0x20]
pop dword [ebx + 0x1c]
pop dword [ebx + 0x18]
mov dword [ebx + 0x14], ebp
mov dword [ebx + 8], eax
mov dword [ebx + 0x10], edx
lea ecx, [ebp - 0x40]
mov dword [ebx], ecx
call sub.kernel32.dll_GetCurrentThreadId
mov dword [ebx + 0x2c], eax
mov eax, dword [ebx + 8]
xor ecx, ecx
cmp dword [ebp + 0xc], 0
jne 0x409624
mov ecx, dword [eax]
mov dword [ebx + 0xc], ecx
mov eax, 0x4050cc
mov dword [0x53601c], eax
mov eax, 0x4050d4
mov dword [0x536020], eax
mov eax, ebx
call fcn.004094bc
mov eax, dword [ebp + 0xc]
inc eax
mov byte [ebx + 0x28], al
dec eax
pop ecx
mov edx, dword [ecx]
mov dword [ebx + 0x24], edx
je 0x409659
cmp al, 3
jge 0x409659
call dword [ecx + eax*4]
push ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x40966a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
call ecx
pop ecx
mov eax, dword [ebp + 0xc]
cmp al, 3
jl 0x409675
call dword [ecx + eax*4]
cmp dword [0x536040], 0
jne 0x40968b
mov byte [0x536048], 1
fnstcw word [0x52e028]
mov eax, dword [ebp + 0xc]
dec eax
jne fcn.00409924
call fcn.0040956c
ret 4

Function at 0x40988c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x536058], 0
je 0x4098f3
cmp word [0x536344], 0xd7b2
jne 0x4098b5
cmp dword [0x53634c], 0
jbe 0x4098b5
mov eax, 0x536340
call dword [0x53635c]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x409920
call fcn.0040a49c
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x52e032], 0
jne 0x40990f
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x409ab4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0x10]
cmp dword [0x52e034], 0
je 0x409adf
mov edx, edi
mov eax, esi
call dword [0x52e034]
mov ebx, eax
jmp 0x409af0
mov eax, 8
call fcn.00406e0c
mov ebx, eax
mov dword [ebx], esi
mov dword [ebx + 4], edi
mov byte [0x536059], 1
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
push ebx
mov eax, 0x409a7c
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_CreateThread
mov esi, eax
test esi, esi
jne 0x409b20
mov eax, ebx
call fcn.00406e28
mov eax, esi
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 0xc
Function at 0x40c850
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x40c9b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00409bf4
cmp si, word [0x52ea00]
jb 0x40c8e8
cmp si, word [0x52ec00]
ja 0x40c8e8
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40c8e8
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x52ea00]
jae 0x40c8c2
mov edi, ebx
dec edi
jmp 0x40c8e3
cmp si, word [ebx*8 + 0x52ea00]
jbe 0x40c8d2
inc ebx
mov dword [ebp - 8], ebx
jmp 0x40c8e3
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x52ea04]
call fcn.0040c770
jmp 0x40c8e8
cmp edi, dword [ebp - 8]
jae 0x40c8ac
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40c997
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40c997
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a8b8
push dword [ebp - 0x160]
push 0x40c9d0
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.0040a8b8
push dword [ebp - 0x164]
push 0x40c9e0
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.0040a8b8
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.0040aaf0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c9bc
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00409c54
ret
Function at 0x40cb68
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40cc6c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x538c10
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x538c28]
jne 0x40cbb4
mov eax, esi
mov edx, 0x538c2a
mov ecx, 0x55
call fcn.0040a8b8
push 0x538c10
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x40cc56
push 0x538c10
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00409bf4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40cc23
cmp byte [0x538c0c], 0
je 0x40cbe8
mov edx, esi
mov eax, ebx
call fcn.0040ca4c
jmp 0x40cc23
mov edx, esi
mov eax, ebx
call fcn.0040c850
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x40cc23
cmp dword [esi], 0
je 0x40cc0c
mov eax, esi
mov edx, 0x40cc84
call fcn.0040aa10
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.0040c850
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.0040aa10
push 0x538c10
call sub.kernel32.dll_EnterCriticalSection
mov word [0x538c28], bx
mov eax, dword [esi]
call fcn.0040a814
mov ecx, eax
mov eax, 0x538c2a
mov edx, 0xaa
call fcn.0040c6d0
push 0x538c10
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cc73
lea eax, [ebp - 4]
call fcn.00409bf4
ret
Function at 0x4265e4
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 0x426709
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004263ec
mov esi, eax
mov eax, dword [0x535de0]
cmp byte [eax], 0
je 0x4266b1
mov eax, dword [0x535b68]
call fcn.004076c8
call fcn.00406f60
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 [0x4265b4]
call fcn.0040bf84
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 0x426724
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4266ed
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x535b28]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x539624]
call fcn.0040c374
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 0x426710
lea eax, [ebp - 4]
mov edx, dword [0x4265b4]
call fcn.0040c0a8
ret
Function at 0x4807f0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
mov dl, 0xb5
mov ebx, eax
xor eax, eax
mov ecx, eax
mov esi, ebx
shr esi, cl
mov ecx, esi
and cl, 0xff
xor dl, cl
inc eax
cmp eax, 4
jne 0x4807f8
mov eax, edx
pop esi
pop ebx
ret

Function at 0x4b7208
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b72a6
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xd]
je 0x4b726a
cmp byte [ebx + 0x11], 0
jne 0x4b726a
cmp byte [ebx + 0x24], 0
jne 0x4b726a
mov byte [ebx + 0xf], 0
mov byte [ebx + 0xd], 0
mov eax, dword [ebx + 8]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x4b728b
lea edx, [ebp - 4]
mov eax, dword [0x535d8c]
call fcn.0040ee3c
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x48faa4]
call fcn.00426734
call fcn.00409270
jmp 0x4b728b
lea edx, [ebp - 8]
mov eax, dword [0x535d8c]
call fcn.0040ee3c
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x48faa4]
call fcn.00426734
call fcn.00409270
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b72ad
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409c54
ret

Function at 0x4b7ac0
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 + 0xf]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x4b7b0e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xf], 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.004b7088
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4b7b27
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4b7b30
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.004b7088
dec esi
jne 0x4b7b52
mov byte [ebx + 0xf], 0
pop esi
pop ebx
ret
Function at 0x4d8970
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 0x4d8b2b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040a01c
mov eax, dword [ebp - 4]
call fcn.004d82c0
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4d89c2
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.0040ac20
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.004d95b8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d8aa1
xor eax, eax
push ebp
push 0x4d8a9a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004d8560
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004d8b60
test al, al
je 0x4d8a78
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.00409d7c
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4d8a78
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.0040a814
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.004d84c0
test al, al
je 0x4d8a72
mov eax, dword [ebp - 8]
call fcn.0040a814
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0040a87c
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004d8970
dec ebx
cmp ebx, 0xffffffff
jne 0x4d8a21
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8aa1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004d8560
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
cmp byte [0x53be24], 0
je 0x4d8ae1
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x18]
and eax, 0x300
push eax
mov eax, dword [ebp - 4]
call fcn.0040a814
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004d854c
push eax
call sub.advapi32.dll_RegDeleteKeyExW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d84c0
mov ebx, eax
jmp 0x4d8b08
mov eax, dword [ebp - 4]
call fcn.0040a814
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004d854c
push eax
call sub.advapi32.dll_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d84c0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d8b32
lea eax, [ebp - 0x3c]
call fcn.00409bf4
lea eax, [ebp - 8]
mov edx, 2
call fcn.00409c54
ret
Function at 0x4d9494
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.004d82d8
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.0040a814
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004d84c0
test al, al
jne 0x4d94fc
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x535cb8]
mov dl, 1
mov eax, dword [0x4d70a4]
call fcn.00426938
call fcn.00409270
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4d9508
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.0040a814
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
mov edx, eax
mov eax, ebx
call fcn.004d84c0
test al, al
jne 0x4d9569
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x535f04]
mov dl, 1
mov eax, dword [0x4d70a4]
call fcn.00426938
call fcn.00409270
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d8308
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 0x4d9b68
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 0x4d9c90
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.004d8560
xor eax, eax
push ebp
push 0x4d9c6b
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.004d8b60
test al, al
je 0x4d9c4f
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004d9a48
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.00409d7c
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4d9c4f
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.0040a814
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.004d84c0
test al, al
je 0x4d9c4b
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0040a814
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0040a87c
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004d9a48
pop ecx
inc edi
dec ebx
jne 0x4d9bf3
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d9c72
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004d8560
ret