joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418a00
Capabilities:
Hash data with md5

Disassembly:
push ebx
sub esp, 0x18
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x418a43
mov dword [ebx + 8], 0x67452301
mov dword [ebx + 0xc], 0xefcdab89
xor eax, eax
mov dword [ebx + 0x10], 0x98badcfe
mov dword [ebx + 0x14], 0x10325476
mov dword [ebx], 0
mov dword [ebx + 4], 0
mov dword [ebx + 0x18], 0
add esp, 0x18
pop ebx
ret
mov dword [esp + 8], 0xb0
mov dword [esp + 4], str.W:programs_ntpweditlibntpwlibtomcrypt_srchashesmd4.c
mov dword [esp], str.md___NULL
call fcn.00419010
jmp 0x418a0c

Function at 0x419490
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.004194f0

Function at 0x4194f0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x3c
mov eax, dword [0x42b22c]
test eax, eax
jle 0x4195f3
mov edx, dword [0x42b230]
xor ebx, ebx
mov ecx, dword [edx + 4]
cmp ecx, esi
ja 0x419521
mov edi, dword [edx + 8]
add ecx, dword [edi + 8]
cmp esi, ecx
jb 0x419596
add ebx, 1
add edx, 0xc
cmp ebx, eax
jne 0x419510
mov dword [esp], esi
call fcn.00419e30
test eax, eax
mov edi, eax
je 0x41961a
lea esi, [ebx + ebx*2]
mov ebx, dword [0x42b230]
shl esi, 2
add ebx, esi
mov dword [ebx + 8], eax
mov dword [ebx], 0
call fcn.00419f20
add eax, dword [edi + 0xc]
mov dword [ebx + 4], eax
lea eax, [ebp - 0x34]
mov dword [esp + 4], eax
mov eax, dword [0x42b230]
mov dword [esp + 8], 0x1c
mov eax, dword [eax + esi + 4]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4195fa
mov eax, dword [ebp - 0x20]
cmp eax, 0x40
jne 0x4195a0
add dword [0x42b22c], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 4
je 0x41958f
cmp eax, 0x80
je 0x41958f
cmp eax, 8
je 0x41958f
mov eax, dword [ebp - 0x28]
add esi, dword [0x42b230]
mov dword [esp + 8], 0x40
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x34]
mov dword [esp + 0xc], esi
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x41958f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.00419490
xor ebx, ebx
jmp 0x41952b
mov eax, dword [0x42b230]
mov eax, dword [eax + esi + 4]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.00419490
mov dword [esp + 4], esi
mov dword [esp], str.Address__p_has_no_image_section
call fcn.00419490
lea esi, [esi]
Function at 0x419d50
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x419d88
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x419d7e
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x419d8a
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x419d70
xor eax, eax
pop ebx
pop esi
ret
Function at 0x10053193
Capabilities:
Contain obfuscated stackstrings

Disassembly:
test eax, 0x468e74b
add dword [eax], eax
add byte [ebp - 0x3337b], cl
call dword [eax - 1]
jne 0x10052f5b
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x10052f86
push 0xc6fffffc
test dword [edx + edi*8 - 0x7cfe0001], edi
mov ebp, 0xfffffc68
add byte [edi + edx - 0x7d], dh
mov ebp, 0xfffffc68
add byte [edi], cl
test ah, dl
add dword [eax], eax
add byte [ebx + 0xf010c7d], al
test dl, cl
add dword [eax], eax
add byte [ebx + 0xf080c7d], al
test dword [eax - 0x7fffffff], ecx
movsd dword es:[edi], dword [esi]
dec eax
stc
invalid
cmp dword [ebp - 0x398], 0
je 0x10053150
cmp dword [ebp + 0xc], 1
je 0x10053150
cmp dword [ebp + 0xc], 8
jne 0x10053118
and byte [ebp - 0x6b8], 0
and byte [ebp - 0x6b7], 0
mov byte [ebp - 0x6b6], 0x9b
and byte [ebp - 0x6b5], 0
mov byte [ebp - 0x6b4], 0x33
mov byte [ebp - 0x6b3], 0x16
mov byte [ebp - 0x6b2], 0xd
mov byte [ebp - 0x6b1], 0x10
mov byte [ebp - 0x6b0], 1
mov byte [ebp - 0x6af], 0x34
mov byte [ebp - 0x6ae], 0x16
call fcn.10052292
test dword [ebp - 0x5a7fc327], edi
mov esp, 0xfffffa
push 0
call dword [ebp - 0x340]
mov dword [ebp + 8], eax
push 0x104
lea eax, [ebp - 0x334]
push eax
push 0
call dword [ebp - 0x538]
call fcn.10052292
sub al, 0x29
pop eax
hlt
and byte [ebp - 0x230], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x22f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x12c], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x12b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
and byte [ebp - 0x654], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x653]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosd dword es:[edi], eax
stosb byte es:[edi], al
and byte [ebp - 0x504], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x503]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10052270
or byte [eax + 0x2ff845c6], ah
mov byte [ebp - 0x24], 0x34
and byte [ebp - 0x36c], 0
and byte [ebp - 0x36b], 0
mov byte [ebp - 0x36a], 0xaa
and byte [ebp - 0x369], 0
mov byte [ebp - 0x368], 0x12
mov byte [ebp - 0x367], 0x30
mov byte [ebp - 0x366], 0x21
mov byte [ebp - 0x365], 6
mov byte [ebp - 0x364], 0x2c
mov byte [ebp - 0x363], 0x26
mov byte [ebp - 0x362], 0x21
mov byte [ebp - 0x361], 0x30
mov byte [ebp - 0x360], 0x38
mov byte [ebp - 0x35f], 0x11
mov byte [ebp - 0x35e], 0x3c
mov byte [ebp - 0x35d], 0x27
mov byte [ebp - 0x35c], 0x30
mov byte [ebp - 0x35b], 0x36
mov byte [ebp - 0x35a], 0x21
mov byte [ebp - 0x359], 0x3a
invalid
invalid
test al, 0xfc
Function at 0x10056ccb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x10056d13
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x10056d13
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10056d13
cmp word [eax + 2], 0
je 0x10056d13
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x10056d13
add eax, 0x30
jmp 0x10056d18
mov eax, 0x10012960
pop esi
pop ebp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x413054], 1
mov dword [0x413050], 1
mov dword [0x41304c], 1
mov dword [0x413044], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x41300c], eax
mov eax, dword [0x413060]
test eax, eax
jne 0x4010b0
mov dword [esp], 1
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x413074]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x41305c]
mov dword [eax], edx
call dbg._setargv
cmp dword [0x40f01c], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 2
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], dbg._matherr
call dbg.__mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x4018c0
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call dbg.__acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call dbg.__acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x401920
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x413068]
test esi, esi
jle 0x401a40
mov eax, dword [0x41306c]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp edx, ebx
ja 0x401954
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x4019d7
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x401940
mov dword [esp], ebx
call dbg.__mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401a67
mov eax, dword [0x41306c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call dbg._GetPEImageBase
mov edx, dword [0x41306c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x401a47
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x4019d0
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x4019e0
add dword [0x413068], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x41306c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x4019d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call dbg.__report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x40195e
mov eax, dword [0x41306c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call dbg.__report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call dbg.__report_error
lea esi, [esi]
nop

Function at 0x401f20
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x413084
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x41307c]
sub esp, 4
test ebx, ebx
je 0x401f75
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x401f6e
test esi, esi
je 0x401f6e
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401f50
mov dword [esp], 0x413084
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5d1241f1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x5d124200
pop dword [ebp - 8]
mov eax, 0xc8816808
add eax, 0x9490d9f8
sub dword [ebp - 8], eax
mov dword [ebp - 0x18], 0xa2aa703b
sub dword [ebp - 0x18], 0x54582af0
mov dword [ebp - 0x14], 0xd98598c5
sub dword [ebp - 0x14], 0xa7524c80
mov dword [ebp - 0x10], 0xfb3de43
add dword [ebp - 0x10], 0x3c9865eb
mov dword [ebp - 0xc], 0xe75228b9
sub dword [ebp - 0xc], 0xe75228b9
lea eax, [ebp - 0x18]
push eax
mov eax, sym.imp.kernel32.dll_LoadLibraryA
add eax, dword [ebp - 8]
call dword [eax]
mov dword [ebp - 0x18], 0x1ee88bb6
add dword [ebp - 0x18], 0x5589dda0
mov dword [ebp - 0x14], 0x9b4893b6
sub dword [ebp - 0x14], 0x59dc3241
mov dword [ebp - 0x10], 0xbe1dfe69
sub dword [ebp - 0x10], 0x5aae91fd
mov dword [ebp - 0xc], 0x436d52fd
sub dword [ebp - 0xc], 0x436d52fd
lea ebx, [ebp - 0x18]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 8]
call dword [eax]
push 0x40
push 0x1000
push 0x360b1
push 0
call eax
mov ecx, 0x34b40000
add ecx, 0xcb4c4244
xor edx, edx
add edx, eax
mov edi, 0xe1cdd6a0
add edi, 0x7b455760
add edi, dword [ebp - 8]
mov esi, 0x4b540144
sub esi, 0x7a967989
sub dword [ebp - 4], 0x963154ad
mov ebx, dword [edi]
add dword [ebp - 4], edi
xor ebx, esi
add dword [ebp - 4], ecx
mov dword [edx], ebx
add dword [ebp - 4], edx
add edx, 0x81abe92b
sub edx, 0x81abe927
add edi, 0x71bce0b2
sub edi, 0x71bce0ae
loop 0x5d12431a
add eax, 0xe2cc15ce
sub eax, 0xe2cb19eb
xor ebx, ebx
add ebx, eax
add eax, 0x655f55cc
sub eax, 0x655f55c7
mov ecx, sym.ATL70.DLL_Ordinal_16
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x5d1247ab
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4014
call fcn.5d12a3c0
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x14], esi
call dword [0x5d12e060]
lea eax, [ebp - 0x4014]
xor edi, edi
push eax
mov ecx, esi
mov dword [ebp - 0xc], edi
call fcn.5d1241f1
cmp eax, edi
jl 0x5d1249d2
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4014]
push eax
call fcn.5d124a19
test eax, eax
pop ecx
pop ecx
jne 0x5d124801
mov eax, 0x80020009
jmp 0x5d1249d2
mov ecx, esi
call fcn.5d1240ae
lea eax, [ebp - 0x2014]
push eax
mov ecx, esi
call fcn.5d1241f1
cmp eax, edi
jl 0x5d1249d2
movzx eax, word [ebp - 0xc]
sub eax, 8
je 0x5d12498a
sub eax, 9
je 0x5d1248f3
dec eax
dec eax
je 0x5d1248cd
sub eax, 0x3ff5
jne 0x5d1249c1
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
shl eax, 1
add eax, 3
and eax, 0xfffffffc
call fcn.5d12a3c0
mov esi, esp
cmp esi, edi
mov dword [ebp - 4], esi
je 0x5d1248c5
cmp word [ebp - 0x2014], 0
lea edi, [ebp - 0x2014]
je 0x5d1248ac
mov ebx, dword [sym.imp.USER32.dll_CharNextW]
push edi
call ebx
mov cx, word [edi]
cmp cx, 0x5c
jne 0x5d12489f
cmp word [eax], 0x30
jne 0x5d12489f
and word [esi], 0
inc esi
push eax
inc esi
call ebx
mov edi, eax
jmp 0x5d1248a6
mov word [esi], cx
inc esi
inc esi
inc edi
inc edi
cmp word [edi], 0
jne 0x5d124880
push dword [ebp - 4]
mov ecx, dword [ebp + 8]
push dword [ebp + 0xc]
and word [esi], 0
call fcn.5d1249df
xor edi, edi
jmp 0x5d1249b4
push 0xe
pop eax
jmp 0x5d1249b4
lea eax, [ebp - 0x10]
push eax
push edi
push edi
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.OLEAUT32.dll_VarUI4FromDisp]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
push 4
lea eax, [ebp - 4]
push eax
push 4
jmp 0x5d1249a5
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
test al, 1
mov dword [ebp - 4], eax
jne 0x5d124930
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
mov eax, ebx
add eax, 3
and eax, 0xfffffffc
call fcn.5d12a3c0
mov dword [ebp - 8], esp
push ebx
push edi
push dword [ebp - 8]
call fcn.5d129e50
add esp, 0xc
cmp dword [ebp - 8], edi
jne 0x5d12493a
mov eax, 0x80004005
jmp 0x5d1249d2
cmp dword [ebp - 4], edi
jle 0x5d124978
mov ecx, dword [ebp - 8]
mov eax, edi
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ecx]
xor eax, eax
mov ax, word [ebp + edi*2 - 0x2014]
push eax
call fcn.5d124aab
pop ecx
mov ecx, edi
and ecx, 1
shl ecx, 2
mov edx, ecx
push 4
pop ecx
sub ecx, edx
shl al, cl
or byte [esi], al
inc edi
cmp edi, dword [ebp - 4]
jl 0x5d12493f
xor edi, edi
mov eax, dword [ebp + 8]
mov eax, dword [eax]
push ebx
push dword [ebp - 8]
push 3
push edi
push dword [ebp + 0xc]
push eax
jmp 0x5d1249ae
lea eax, [ebp - 0x2014]
push eax
call dword [sym.imp.kernel32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
lea eax, [ebp - 0x2014]
push eax
push 1
mov eax, dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp eax, edi
je 0x5d1249c1
push eax
call fcn.5d12474c
pop ecx
jmp 0x5d1249d2
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x14]
call fcn.5d1241f1
cmp eax, edi
jl 0x5d1249d2
xor eax, eax
lea esp, [ebp - 0x4020]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x5d1249df
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov ebx, ecx
xor edi, edi
push esi
call dword [sym.imp.kernel32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x5d1249ea
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
ret 8

Function at 0x5d124b63
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
push ebx
push esi
push 0x2001f
push dword [ebp + 8]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 4]
mov dword [ebp - 4], esi
call fcn.5d1241f1
cmp eax, esi
jne 0x5d124bdb
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x5d124ba4
lea eax, [ebp - 0x210]
push eax
call fcn.5d1241f1
cmp eax, esi
jne 0x5d124bda
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x210]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 8], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 4]
je 0x5d124b94
call fcn.5d12475f
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
lea ecx, [ebp - 4]
mov esi, eax
call fcn.5d12475f
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x5d128eef
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push esi
call fcn.5d1241f1
mov esi, dword [esp + 0x14]
or dword [esp + 8], 0xffffffff
push 5
push dword [esp + 0x1c]
push esi
call fcn.5d121b6b
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], eax
je 0x5d128fcf
push ebx
push ebp
push edi
push 0xf0
push dword [esp + 0x28]
push esi
call fcn.5d121b6b
mov edi, dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, dword [sym.imp.kernel32.dll_LockResource]
add esp, 0xc
xor ebp, ebp
test eax, eax
je 0x5d128f4c
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x5d128fb1
push eax
call ebx
mov edi, eax
test edi, edi
je 0x5d128fb1
push ebp
push edi
call fcn.5d1241f1
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
push eax
mov dword [esp + 0x18], eax
call fcn.5d121b7e
test al, al
pop ecx
jne 0x5d128f9d
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x5d128fbb
push ebx
call dword [sym.imp.kernel32.dll_GlobalHandle]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
jmp 0x5d128fbb
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop edi
pop ebp
pop ebx
je 0x5d128fcf
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret
Function at 0x5d128fd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push esi
call fcn.5d1241f1
mov esi, dword [esp + 0x14]
or dword [esp + 8], 0xffffffff
push 5
push dword [esp + 0x1c]
push esi
call fcn.5d121b58
add esp, 0xc
test eax, eax
mov dword [esp + 0xc], eax
je 0x5d1290b8
push ebx
push ebp
push edi
push 0xf0
push dword [esp + 0x28]
push esi
call fcn.5d121b58
mov edi, dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, dword [sym.imp.kernel32.dll_LockResource]
add esp, 0xc
xor ebp, ebp
test eax, eax
je 0x5d129035
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x5d12909a
push eax
call ebx
mov edi, eax
test edi, edi
je 0x5d12909a
push ebp
push edi
call fcn.5d1241f1
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamA]
push eax
mov dword [esp + 0x18], eax
call fcn.5d121b7e
test al, al
pop ecx
jne 0x5d129086
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x5d1290a4
push ebx
call dword [sym.imp.kernel32.dll_GlobalHandle]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
jmp 0x5d1290a4
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop edi
pop ebp
pop ebx
je 0x5d1290b8
push dword [esp + 4]
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esp + 8]
pop esi
add esp, 0xc
ret

Function at 0x5d1290c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0xc
push ebp
push esi
call fcn.5d1241f1
mov esi, dword [esp + 0x18]
push 5
push dword [esp + 0x20]
xor ebp, ebp
push esi
mov dword [esp + 0x18], ebp
call fcn.5d121b6b
add esp, 0xc
cmp eax, ebp
mov dword [esp + 0x10], eax
je 0x5d129198
push ebx
push edi
push 0xf0
push dword [esp + 0x28]
push esi
call fcn.5d121b6b
mov edi, dword [sym.imp.kernel32.dll_LoadResource]
mov ebx, dword [sym.imp.kernel32.dll_LockResource]
add esp, 0xc
cmp eax, ebp
je 0x5d12911d
push eax
push esi
call edi
push eax
call ebx
mov ebp, eax
push dword [esp + 0x18]
and dword [esp + 0x14], 0
push esi
call edi
test eax, eax
je 0x5d12917b
push eax
call ebx
mov edi, eax
test edi, edi
je 0x5d12917b
push ebp
push edi
call fcn.5d1241f1
pop ecx
pop ecx
push dword [esp + 0x30]
mov ebx, eax
push dword [esp + 0x30]
push dword [esp + 0x30]
push ebx
push esi
call dword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
test eax, eax
mov dword [esp + 0x14], eax
jne 0x5d129167
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp ebx, edi
je 0x5d129185
push ebx
call dword [sym.imp.kernel32.dll_GlobalHandle]
push eax
call dword [sym.imp.kernel32.dll_GlobalFree]
jmp 0x5d129185
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp dword [esp + 0x10], 0
pop edi
pop ebx
je 0x5d129198
push dword [esp + 8]
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esp + 0xc]
pop esi
pop ebp
add esp, 0xc
ret