joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100577b
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebx
push esi
push edi
push 0x1001b98
mov esi, ecx
push 0x414
push dword [esi + 4]
xor edi, edi
inc edi
mov dword [esi + 0x10], edi
call dword [0x1009058]
push 0x2b37
push dword [0x1009028]
call sub.cmutil.dll_CmLoadStringW
mov ebx, eax
push ebx
push edi
push dword [esi + 4]
call dword [0x1009058]
push ebx
call sub.cmutil.dll_CmFree
push 0x2b38
push dword [0x1009028]
call sub.cmutil.dll_CmLoadStringW
mov edi, eax
push edi
push 0x413
push dword [esi + 4]
call dword [0x1009058]
push edi
call sub.cmutil.dll_CmFree
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0
push 0x415
push dword [esi + 4]
call edi
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call ebx
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x1005814
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x1005841
push 5
push 0x410
push dword [esi + 4]
call edi
push eax
call ebx
push 5
push 0x411
push dword [esi + 4]
call edi
push eax
call ebx
push 5
push 0x412
push dword [esi + 4]
call edi
push eax
call ebx
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
pop esi
pop ebx
ret

Function at 0x1005c0c
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
and dword [esi + 0x10], 0
push edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindowVisible]
neg eax
sbb eax, eax
neg eax
mov ecx, esi
mov dword [esi + 0x18], eax
call fcn.01005b36
push 0x2b35
push dword [0x1009028]
call sub.cmutil.dll_CmLoadStringW
mov edi, eax
push edi
push 1
push dword [esi + 4]
call dword [0x1009058]
push edi
call sub.cmutil.dll_CmFree
push 0x2b36
push dword [0x1009028]
call sub.cmutil.dll_CmLoadStringW
mov edi, eax
push edi
push 0x413
push dword [esi + 4]
call dword [0x1009058]
push edi
call sub.cmutil.dll_CmFree
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
jne 0x1005c9b
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x1005cc8
push 0
push 0x410
push dword [esi + 4]
call ebx
push eax
call edi
push 0
push 0x411
push dword [esi + 4]
call ebx
push eax
call edi
push 0
push 0x412
push dword [esi + 4]
call ebx
push eax
call edi
push 5
push 0x415
push dword [esi + 4]
call ebx
push eax
call edi
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 3
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
pop edi
mov ecx, esi
pop esi
pop ebx
jmp fcn.01004a2b
Function at 0x1006035
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x1009018]
push ebx
push esi
mov esi, dword [ebp + 0xc]
xor ebx, ebx
cmp dword [0x1009034], ebx
push edi
mov dword [ebp - 4], eax
mov edi, 0x400
jne 0x100608d
push 0x103
lea eax, [ebp - 0x108]
push eax
push 0x11
push edi
mov dword [0x1009034], 1
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea eax, [ebp - 0x108]
push eax
call sub.cmutil.dll_CmAtolA
mov dword [0x1009030], eax
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push 0x1001d20
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [ebp + 0x10]
add esp, 0xc
dec eax
push eax
push esi
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetNumberFormatA]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
mov eax, dword [0x1009030]
cmp eax, ebx
je 0x10060ef
cmp edi, eax
jbe 0x10060ef
mov ecx, esi
sub ecx, eax
lea eax, [ecx + edi - 1]
push eax
call sub.cmutil.dll_CmIsDigitA
test eax, eax
jne 0x10060ef
sub esi, dword [0x1009030]
mov byte [esi + edi - 1], bl
jmp 0x10060f5
mov dword [0x1009034], ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0100617c
leave
ret 0xc
Function at 0x1006294
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x1001d28
call fcn.01006498
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x10062d1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10062d1
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x10062e9
cmp eax, 0x20b
je 0x10062d6
mov dword [ebp - 0x1c], ebx
jmp 0x10062fd
cmp dword [ecx + 0x84], 0xe
jbe 0x10062d1
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x10062f7
cmp dword [ecx + 0x74], 0xe
jbe 0x10062d1
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1009184], 0xffffffff
or dword [0x1009188], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1009044]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1009040]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100918c], eax
call fcn.0100648e
cmp dword [0x100901c], ebx
jne 0x1006358
push fcn.0100648e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01006477
push 0x1009010
push 0x100900c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100903c]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1009038]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x1009008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x10063ee
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10063c2
cmp al, 0x22
jne 0x10063b4
cmp byte [esi], 0x22
jne 0x10063cb
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x10063d5
cmp al, 0x20
jbe 0x10063c7
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x10063f9
movzx eax, word [ebp - 0x50]
jmp 0x10063fc
cmp byte [esi], 0x20
jbe 0x10063cb
inc esi
mov dword [ebp - 0x20], esi
jmp 0x10063ee
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x1006419
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100644e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010064d3
ret
Function at 0x1006699
Capabilities:
Read file via mapping

Disassembly:
mov edi, edi
push esi
push edi
mov esi, ecx
xor edi, edi
cmp dword [esi], edi
jne 0x1006753
cmp dword [esi + 4], edi
jne 0x1006753
push ebx
xor ebx, ebx
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x10066d0
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x10066d0
push 0x1001dac
jmp 0x10066d5
push 0x1001d88
push edi
push 6
call dword [0x1009170]
cmp eax, edi
mov dword [esi], eax
je 0x1006736
push edi
push edi
push edi
push 6
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, edi
mov dword [esi + 4], eax
jne 0x1006703
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
jmp 0x1006736
call sub.cmutil.dll_GetOSVersion
cmp eax, 2
jne 0x100671e
call sub.cmutil.dll_GetOSMajorVersion
cmp eax, 5
jb 0x100671e
push 0x1001d58
jmp 0x1006723
push 0x1001d34
push edi
push 0xe0000000
call dword [0x100917c]
cmp eax, edi
mov dword [esi + 0xc], eax
jne 0x100674e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, edi
jle 0x100674e
and ebx, 0xffff
or ebx, 0x80070000
mov eax, ebx
pop ebx
jmp 0x1006758
mov eax, 0x80070005
pop edi
pop esi
ret

Function at 0x120cb78
Capabilities:
Encode data using xor

Disassembly:
jmp 0x120cb82
pushal
call 0x120cb88
pop ebp
sub ebp, 0x10
sub ebp, 0xe0cb78
jmp 0x120cb9e
mov eax, 0xe0cb78
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c0
mov edx, 0xdec9c430
xor byte [eax], dl
inc eax
dec ecx
jne 0x120cbb5
jmp 0x120cbc8
mov ebx, 0xcb9bbfd
xor byte [eax], dh
xor byte [ecx + 0x3030c8f1], dh
xor byte [ebx], dh
std
mov byte [ecx], bh
xor byte [eax], dh
xor byte [edx + 0x30303018], cl
invalid

Function at 0x433006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x40de38
mov ecx, 0x54025694
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
mov ebx, 0x4304d8
nop
mov ecx, 0x7c1376b6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x409840
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov eax, dword [0x40e300]
cmp ebx, eax
jae 0x40986d
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x40e304]
test byte [edx + eax*8 + 4], 1
jne 0x40987f
mov dword [0x40d334], 9
or eax, 0xffffffff
jmp 0x40999c
push 1
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x4098a7
push 2
push 0
push ebx
call fcn.00408af0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x4098af
or eax, 0xffffffff
jmp 0x40999c
mov eax, dword [ebp + 0xc]
neg edi
add edi, eax
jle 0x409941
push 0x1000
push 1
call fcn.00409e10
add esp, 8
mov dword [ebp - 4], eax
test eax, eax
je 0x40993b
push 0x8000
push ebx
call fcn.00409e70
add esp, 8
mov dword [ebp - 8], eax
mov eax, 0x1000
cmp edi, 0x1000
jge 0x4098f2
mov eax, edi
mov edx, eax
push edx
mov eax, dword [ebp - 4]
push eax
push ebx
call fcn.004074e0
add esp, 0xc
mov dword [ebp + 0xc], eax
cmp eax, 0xffffffff
jne 0x409910
or dword [ebp - 0xc], 0xffffffff
jmp 0x409922
mov eax, edi
sub eax, dword [ebp + 0xc]
mov edi, eax
mov dword [ebp - 0xc], 0
test eax, eax
jg 0x4098e3
mov eax, dword [ebp - 8]
push eax
push ebx
call fcn.00409e70
add esp, 8
mov eax, dword [ebp - 4]
push eax
call fcn.004040b0
pop ecx
jmp 0x40998d
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
mov dword [ebp - 0xc], 0
test edi, edi
jge 0x40998d
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00408af0
add esp, 0xc
cmp eax, 0xffffffff
jne 0x409966
or dword [ebp - 0xc], 0xffffffff
jmp 0x40998d
push ebx
call fcn.00407980
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov dword [ebp - 0xc], 0
test eax, eax
jne 0x40998d
mov dword [0x40d334], 0xd
or dword [ebp - 0xc], 0xffffffff
push 0
push esi
push ebx
call fcn.00408af0
add esp, 0xc
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403ac5
nop
nop
sub eax, 0x403a6b
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x42e030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x42e01e
nop
popal
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401638
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40164a
mov eax, dword [0x5b209f]
shl eax, 2
mov dword [0x5b20a3], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.005a1570
pop edx
call fcn.005a14b4
call fcn.005a16cc
push 0
call fcn.005a32b0
pop ecx
push 0x5b2048
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x5b20a7], eax
push 0
jmp fcn.005ace5c
Function at 0x4a4138
Capabilities:
Check for time delay via gettickcount
Create process on windows

Disassembly:
push ebx
call sub.KERNEL32.DLL_GetTickCount
mov ebx, eax
push 0
push str.cmd__c_echo_hi
call sub.KERNEL32.DLL_WinExec
call sub.KERNEL32.DLL_GetTickCount
sub eax, ebx
cmp eax, 0x32
jb 0x4a415c
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

Function at 0x4ac670
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4ac6c2
test eax, edx
je 0x4ac6c5
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4ac685
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 0x4ac6ab
add ecx, 4
js 0x4ac69b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4ac6a8
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 0x4ac6d1
test edx, edx
jne 0x4ac678
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x4af698
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x4af6c7
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x4af746
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.004b4388
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4af714
mov cx, word [esp]
sub cx, si
jmp 0x4af716
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4af6fd
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x4af73c
mov cx, word [esp]
sub cx, si
jmp 0x4af73e
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4af725
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x4af7a3
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.004af36c
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x4af78e
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x4af7a3
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4af6a2
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4d04ec
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d058a
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x4d054e
cmp byte [ebx + 0x10], 0
jne 0x4d054e
cmp byte [ebx + 0x3c], 0
jne 0x4d054e
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 0x4d056f
lea edx, [ebp - 4]
mov eax, dword [0x5f9df0]
call fcn.005129fc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x4c07d4]
call fcn.004f86d4
call fcn.0050e910
jmp 0x4d056f
lea edx, [ebp - 8]
mov eax, dword [0x5f9df0]
call fcn.005129fc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4c07d4]
call fcn.004f86d4
call fcn.0050e910
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0591
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f198
ret

Function at 0x4d0e98
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 0x4d0ee6
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.004d0438
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d0eff
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x4d0f08
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.004d0438
dec esi
jne 0x4d0f2a
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x4d28e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x5fafe8
cmp dword [edi], 0
jne 0x4d295c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.KERNEL32.DLL_VirtualAlloc
mov esi, eax
mov eax, dword [0x5fafe4]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x5f3118
mov ecx, 2
call fcn.0050cda0
mov edx, 0x4d28b8
lea eax, [esi + 5]
call fcn.004d28d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004d28d8
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 0x4d2931
mov dword [0x5fafe4], 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 0x4d5e10
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 0x4d5f8b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0050f540
mov eax, dword [ebp - 4]
call fcn.004d5770
mov byte [ebp - 0x11], al
cmp byte [ebp - 0x11], 0
jne 0x4d5e62
lea eax, [ebp - 4]
mov ecx, 1
mov edx, 1
call fcn.00510204
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.004d6a04
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4d5f41
xor eax, eax
push ebp
push 0x4d5f3a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.004d5a10
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0xc]
call fcn.004d5fc0
test al, al
je 0x4d5f18
mov ecx, dword [ebp - 0x34]
inc ecx
lea eax, [ebp - 8]
xor edx, edx
call fcn.0050f2a0
mov ebx, dword [ebp - 0x38]
dec ebx
cmp ebx, 0
jl 0x4d5f18
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.0050fdf8
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.004d5970
test al, al
je 0x4d5f12
mov eax, dword [ebp - 8]
call fcn.0050fdf8
mov edx, eax
lea eax, [ebp - 0x3c]
call fcn.0050fe48
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0xc]
call fcn.004d5e10
dec ebx
cmp ebx, 0xffffffff
jne 0x4d5ec1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5f41
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
call fcn.004d5a10
mov eax, dword [ebp - 0x1c]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov eax, dword [ebp - 4]
call fcn.0050fdf8
push eax
movzx edx, byte [ebp - 0x11]
mov eax, dword [ebp - 0xc]
call fcn.004d59fc
push eax
call sub.ADVAPI32.DLL_RegDeleteKeyW
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.004d5970
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d5f92
lea eax, [ebp - 0x3c]
call fcn.0050f138
lea eax, [ebp - 8]
mov edx, 2
call fcn.0050f198
ret

Function at 0x4d68e0
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.004d5788
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.0050fdf8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegSetValueExW
mov edx, eax
mov eax, ebx
call fcn.004d5970
test al, al
jne 0x4d6948
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5f9dc4]
mov dl, 1
mov eax, dword [0x4d4594]
call fcn.004f88d8
call fcn.0050e910
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4d6954
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.0050fdf8
push eax
mov eax, dword [ebx + 4]
push eax
call sub.ADVAPI32.DLL_RegQueryValueExW
mov edx, eax
mov eax, ebx
call fcn.004d5970
test al, al
jne 0x4d69b5
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5f9dc0]
mov dl, 1
mov eax, dword [0x4d4594]
call fcn.004f88d8
call fcn.0050e910
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.004d57b8
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 0x4d6fb4
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 0x4d70dc
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.004d5a10
xor eax, eax
push ebp
push 0x4d70b7
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.004d5fc0
test al, al
je 0x4d709b
mov eax, dword [ebp + 8]
push eax
xor ecx, ecx
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004d6e94
pop ecx
mov ecx, dword [ebp - 0x20]
inc ecx
lea eax, [ebp - 4]
xor edx, edx
call fcn.0050f2a0
mov ebx, dword [ebp - 0x24]
dec ebx
test ebx, ebx
jl 0x4d709b
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.0050fdf8
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.004d5970
test al, al
je 0x4d7097
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
call fcn.0050fdf8
mov edx, eax
lea eax, [ebp - 0x30]
call fcn.0050fe48
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004d6e94
pop ecx
inc edi
dec ebx
jne 0x4d703f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d70be
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov edx, dword [ebp - 0x10]
call fcn.004d5a10
ret