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

Disassembly:
call fcn.105b41a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x105b407e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105b406a
add dl, dl
jne 0x105b4089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105b40dc
xor eax, eax
add dl, dl
jne 0x105b4096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x105b417d
add dl, dl
jne 0x105b40a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105b40b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105b40bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105b40c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x105b40d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x105b4075
mov eax, 1
add dl, dl
jne 0x105b40ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x105b40f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105b40e1
sub eax, ebx
mov ebx, 1
jne 0x105b4128
mov ecx, 1
add dl, dl
jne 0x105b410e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105b4119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105b4105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105b4075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x105b413f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x105b414a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x105b4136
cmp eax, 0x7d00
jae 0x105b416d
cmp eax, 0x500
jb 0x105b4168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105b4075
cmp eax, 0x7f
ja 0x105b4170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x105b4075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x105b419e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x105b4075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x4098c1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41a344]
jne 0x4098cb
repz ret
jmp fcn.0040e3ec

Function at 0x41261c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41a344]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040c1e2
and dword [ebp - 0x14], 0
cmp dword [0x43e64c], 0
mov dword [ebp - 0x18], eax
jne 0x4126cf
push 0x403754
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x412777
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x403748
push ebx
call edi
test eax, eax
je 0x412777
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x403738
push ebx
mov dword [0x43e64c], eax
call edi
push eax
call esi
push 0x403724
push ebx
mov dword [0x43e650], eax
call edi
push eax
call esi
push 0x403708
push ebx
mov dword [0x43e654], eax
call edi
push eax
call esi
mov dword [0x43e65c], eax
test eax, eax
je 0x4126cf
push 0x4036f0
push ebx
call edi
push eax
call esi
mov dword [0x43e658], eax
mov eax, dword [0x43e658]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x412728
cmp dword [0x43e65c], ecx
je 0x412728
push eax
call esi
push dword [0x43e65c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x412728
test ebx, ebx
je 0x412728
call edi
test eax, eax
je 0x41271f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41271f
test byte [ebp - 8], 1
jne 0x412728
or dword [ebp + 0x10], 0x200000
jmp 0x41275b
mov eax, dword [0x43e650]
cmp eax, dword [ebp - 0x18]
je 0x41275b
push eax
call esi
test eax, eax
je 0x41275b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41275b
mov eax, dword [0x43e654]
cmp eax, dword [ebp - 0x18]
je 0x41275b
push eax
call esi
test eax, eax
je 0x41275b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x43e64c]
call esi
test eax, eax
je 0x412777
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x412779
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004098c1
leave
ret
Function at 0x4145d0
Capabilities:
Delete directory
Delete file
Get disk information
Read .ini file

Disassembly:
mov eax, 0x1400
call fcn.00413bf0
cmp dword [0x4a3f30], 0x37
jne 0x414653
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x403f58
call edi
push 0
lea eax, [esp + 0x808]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x40401c
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
lea ecx, [esp + 4]
push ecx
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_SetTapePosition]
push 0x404048
call edi
push 0
lea edx, [esp + 0xc08]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_FindNextVolumeMountPointW]
pop edi
mov eax, dword [0x4a3f34]
mov edx, dword [0x4a3614]
mov cl, byte [eax + esi + 0x38d6]
mov byte [edx + esi], cl
add esp, 0x1400
ret
Function at 0x4b7630
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x75000]
push edi
jmp 0x4b764a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4b7651
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7640
mov eax, 1
add ebx, ebx
jne 0x4b7663
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4b7674
jne 0x4b7693
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7693
dec eax
add ebx, ebx
jne 0x4b7680
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4b7658
add ebx, ebx
jne 0x4b768f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4b76e5
xor ecx, ecx
sub eax, 3
jb 0x4b76ab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4b771a
sar eax, 1
mov ebp, eax
jmp 0x4b76b6
add ebx, ebx
jne 0x4b76b6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7684
inc ecx
add ebx, ebx
jne 0x4b76c4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4b7684
add ebx, ebx
jne 0x4b76d1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4b76c6
jne 0x4b76e2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4b76c6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4b7704
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4b76f6
jmp 0x4b7646
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4b7704
add edi, ecx
jmp 0x4b7646
pop esi
mov edi, esi
mov ecx, 0x379b
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4b7722
cmp byte [edi], 0x13
jne 0x4b7722
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4b7727
lea edi, [esi + 0xb3000]
mov eax, dword [edi]
or eax, eax
je 0x4b779f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xbfe3c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xbff90]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4b7754
mov ecx, edi
jns 0x4b7783
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xbff94]
or eax, eax
je 0x4b7799
mov dword [ebx], eax
add ebx, 4
jmp 0x4b7771
call dword [esi + 0xbffa4]
mov ebp, dword [esi + 0xbff98]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b77d3
sub esp, 0xffffff80
jmp 0x4165c1
Function at 0x42e003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x55495530
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e060
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x43de12a2
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10004520
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ff69
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x1002d900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], 0
xor eax, eax
mov dword [esi + 0x14], 7
push 0xffffffffffffffff
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov word [esi], ax
lea eax, [ebp + 0xc]
push eax
mov dword [ebp - 4], 1
call fcn.100034e0
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x2c], 1
jb 0x10004590
mov eax, dword [esi]
jmp 0x10004592
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10004625
cmp dword [esi + 0x14], 8
jb 0x100045ab
mov eax, dword [esi]
jmp 0x100045ad
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindExtensionW]
push eax
lea ecx, [ebp - 0x28]
call fcn.10002d60
mov eax, dword [ebp - 0x18]
mov byte [ebp - 4], 2
test eax, eax
je 0x1000461a
dec eax
lea ecx, [ebp - 0x28]
push eax
push 1
lea eax, [ebp - 0x48]
push eax
call fcn.100061b0
mov edi, eax
cmp esi, edi
je 0x10004609
cmp dword [esi + 0x14], 8
jb 0x100045ee
push dword [esi]
call fcn.1001110f
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.10003070
cmp dword [ebp - 0x34], 8
jb 0x1000461a
push dword [ebp - 0x48]
call fcn.1001110f
add esp, 4
cmp dword [ebp - 0x14], 8
jb 0x10004694
push dword [ebp - 0x28]
jmp 0x1000468c
push 1
push 0xffffffffffffffff
push 0x10022524
mov ecx, esi
call fcn.10005ea0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x10004694
mov eax, dword [esi + 0x10]
sub eax, ecx
dec eax
push eax
lea eax, [ecx + 1]
mov ecx, esi
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.100061b0
mov edi, eax
cmp esi, edi
je 0x10004683
cmp dword [esi + 0x14], 8
jb 0x10004668
push dword [esi]
call fcn.1001110f
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
push edi
mov word [esi], ax
call fcn.10003070
cmp dword [ebp - 0x34], 8
jb 0x10004694
push dword [ebp - 0x48]
call fcn.1001110f
add esp, 4
cmp dword [ebp + 0x20], 8
jb 0x100046a5
push dword [ebp + 0xc]
call fcn.1001110f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100117b4
mov esp, ebp
pop ebp
ret
Function at 0x10004790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001ff98
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1002d900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x100224a0
push 0x100224b0
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
test esi, esi
je 0x1000484b
push edi
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x34], 0
call fcn.10002d60
push 1
push 0
push 0x100224d4
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.10005b90
push eax
push 0
lea ecx, [ebp - 0x28]
call fcn.10003700
mov eax, dword [ebp - 0x18]
cmp dword [ebp - 0x14], 8
lea eax, [eax*2 + 2]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
push 5
push 0x4a
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp - 0x14], 8
mov esi, eax
jb 0x10004847
push dword [ebp - 0x28]
call fcn.1001110f
add esp, 4
mov eax, esi
jmp 0x10004868
push 5
push 0
push edi
push ebx
push 0x100224d8
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100117b4
mov esp, ebp
pop ebp
ret
Function at 0x10008730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020246
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x1002d900]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 0
push 0x404
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x420]
movq qword [ebp - 0x1c], xmm0
push 0
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
call fcn.10012270
add esp, 0xc
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x100087f4
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x100087f4
call fcn.10007150
mov esi, eax
jmp 0x100088e1
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10008817
call fcn.10007150
jmp 0x100088d4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x10008835
call fcn.10007150
jmp 0x100088d4
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x10008856
mov esi, 0x8007000e
jmp 0x100088d6
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.10006c30
jmp 0x10008880
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x10008897
mov esi, 0x8007000e
jmp 0x100088d6
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x100088b7
call fcn.10007150
jmp 0x100088d4
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x1c]
push dword [ebp - 0x420]
call fcn.100085d0
mov esi, eax
test edi, edi
je 0x100088e1
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10008900
lea ecx, [ebp - 0x420]
call fcn.10007e10
lea ebx, [ebx]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100117b4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x100091a0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x100091b9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100091c5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x100091c0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x10009200
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x10009215
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x10009220
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10009220
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x1000ba70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10020acd
mov eax, dword fs:[0]
push eax
sub esp, 0xa28
mov eax, dword [0x1002d900]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xa30], 0
mov ecx, esi
push eax
push 0x1002232c
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xa34], esi
mov word [esi], ax
call fcn.10003600
push 0x34
xor eax, eax
mov dword [ebp - 4], 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea ecx, [ebp - 0xa24]
mov dword [ebp - 0xa30], 1
mov dword [ebp - 0xa10], 7
mov dword [ebp - 0xa14], 0
mov word [ebp - 0xa24], ax
call fcn.10003600
push 0x24
push str.AE974FF9_A413_6D66_0A74_6C337DE4C095
lea ecx, [ebp - 0xa24]
mov dword [ebp - 4], 1
call fcn.10005270
cmp dword [ebp - 0xa10], 8
lea ecx, [ebp - 0xa2c]
push ecx
push 0x201
lea eax, [ebp - 0xa24]
cmovae eax, dword [ebp - 0xa24]
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1000bc04
push 0x9f5
push eax
mov byte [ebp - 0xa08], al
lea eax, [ebp - 0xa07]
push eax
call fcn.10012270
add esp, 0xc
mov dword [ebp - 0xa0c], 0x9f6
lea eax, [ebp - 0xa0c]
push eax
lea eax, [ebp - 0xa08]
push eax
lea eax, [ebp - 0xa28]
push eax
push 0
push str.DisplayIcon
push dword [ebp - 0xa2c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xa2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0xa08], 0
jne 0x1000bbdb
xor ecx, ecx
lea eax, [ebp - 0xa08]
push ecx
push eax
mov ecx, esi
call fcn.10003600
jmp 0x1000bc0a
lea ecx, [ebp - 0xa08]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000bbe4
sub ecx, edx
lea eax, [ebp - 0xa08]
sar ecx, 1
push ecx
push eax
mov ecx, esi
call fcn.10003600
jmp 0x1000bc0a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0xa10], 8
jb 0x1000bc21
push dword [ebp - 0xa24]
call fcn.1001110f
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100117b4
mov esp, ebp
pop ebp
ret 4
Function at 0x402540
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call fcn.00402560
add esp, 4
mov dword [ebp + 0xc], 0x416380
pop ebp
jmp fcn.00402c80
Function at 0x4018bf
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
lea edx, [ecx + 0x18]
add edx, eax
movzx eax, word [ecx + 6]
imul esi, eax, 0x28
add esi, edx
jmp 0x4018f4
mov ecx, dword [edx + 0xc]
cmp dword [ebp + 0xc], ecx
jb 0x4018f1
mov eax, dword [edx + 8]
add eax, ecx
cmp dword [ebp + 0xc], eax
jb 0x4018fd
add edx, 0x28
cmp edx, esi
jne 0x4018df
xor eax, eax
pop esi
pop ebp
ret
mov eax, edx
jmp 0x4018fa

Function at 0x401d3c
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x401d7b
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x401d7b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x401d7b
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x401d7b
cmp dword [ecx + 0x74], 0xe
jbe 0x401d7b
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40b88d
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40b92a
push ebx
push esi
call fcn.0040b856
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040b7ec
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40b8d7
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b929
push edi
push eax
call fcn.004086b0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40b8f7
call fcn.00407cd0
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40b928
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040b7ec
add esp, 0x20
test eax, eax
jne 0x40b916
push edi
call fcn.00407cd0
jmp 0x40b91e
push ebx
call fcn.00407cd0
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret
Function at 0x40ff0b
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
mov eax, dword [eax + 0xc]
nop
shr eax, 3
test al, 1
je 0x40ff25
mov al, 1
leave
ret
mov eax, dword [ebp + 8]
push ebx
push esi
mov eax, dword [eax + 0xc]
nop
test al, 0xc0
mov eax, dword [ebp + 8]
je 0x40ff3c
mov ecx, dword [eax]
cmp ecx, dword [eax + 4]
je 0x40ff94
mov eax, dword [eax + 0x10]
nop
push eax
call fcn.0040bfc6
mov esi, eax
pop ecx
cmp esi, 0xffffffff
je 0x40ff94
xor ebx, ebx
lea eax, [ebp - 0x10]
inc ebx
xorps xmm0, xmm0
push ebx
push eax
movlpd qword [ebp - 8], xmm0
push dword [ebp - 4]
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x40ff94
lea eax, [ebp - 0x18]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40ff94
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x18]
jne 0x40ff8e
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x14]
je 0x40ff90
xor bl, bl
mov al, bl
jmp 0x40ff96
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x413d00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x413d2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x413d2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret