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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040d9ba
and dword [ebp - 4], 0
cmp dword [0x4246e4], 0
mov ebx, eax
jne 0x414b69
push 0x41b4d8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x414c1a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41b4cc
push edi
call esi
test eax, eax
je 0x414c1a
push eax
call fcn.0040d948
mov dword [esp], 0x41b4bc
push edi
mov dword [0x4246e4], eax
call esi
push eax
call fcn.0040d948
mov dword [esp], 0x41b4a8
push edi
mov dword [0x4246e8], eax
call esi
push eax
call fcn.0040d948
mov dword [esp], 0x41b48c
push edi
mov dword [0x4246ec], eax
call esi
push eax
call fcn.0040d948
pop ecx
mov dword [0x4246f4], eax
test eax, eax
je 0x414b69
push 0x41b474
push edi
call esi
push eax
call fcn.0040d948
pop ecx
mov dword [0x4246f0], eax
mov eax, dword [0x4246f0]
cmp eax, ebx
je 0x414bc1
cmp dword [0x4246f4], ebx
je 0x414bc1
push eax
call fcn.0040d9c3
push dword [0x4246f4]
mov esi, eax
call fcn.0040d9c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x414bc1
test edi, edi
je 0x414bc1
call esi
test eax, eax
je 0x414bb8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x414bb8
test byte [ebp - 0xc], 1
jne 0x414bc1
or dword [ebp + 0x10], 0x200000
jmp 0x414bfa
mov eax, dword [0x4246e8]
cmp eax, ebx
je 0x414bfa
push eax
call fcn.0040d9c3
pop ecx
test eax, eax
je 0x414bfa
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x414bfa
mov eax, dword [0x4246ec]
cmp eax, ebx
je 0x414bfa
push eax
call fcn.0040d9c3
pop ecx
test eax, eax
je 0x414bfa
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4246e4]
call fcn.0040d9c3
pop ecx
test eax, eax
je 0x414c1a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x414c1c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4390e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x43918d
test eax, edx
je 0x439190
push 0
push 0
cmp word [eax - 0xa], 2
je 0x43910d
push edx
mov edx, eax
mov eax, esp
call fcn.0042df58
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x439123
push eax
lea eax, [esp + 8]
call fcn.0042df58
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x439132
movzx eax, word [eax]
sub eax, ecx
jmp 0x439159
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]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x439173
add ecx, 4
js 0x43914a
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x439170
push eax
mov eax, ecx
mov edx, 2
call fcn.0042d57c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x439157
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x439159
xor eax, eax
ret
test eax, eax
je 0x4391a0
test edx, edx
jne 0x4390f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret
Function at 0x441007
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.0042d88c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call fcn.00432700
mov edi, eax
cmp edi, 0x104
jbe 0x44102a
mov eax, edi
add eax, eax
call fcn.0042b69c
mov esi, eax
jmp 0x44102c
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call fcn.00432700
push edi
push esi
call fcn.00432b40
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x441065
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x44104f
mov eax, esp
cmp esi, eax
je 0x441072
mov eax, esi
call fcn.0042b6b8
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x4410ac
cmp bl, 0
je 0x4410a8
cmp bl, 0x41
jl 0x4410a3
cmp bl, 0x5a
jg 0x4410a3
or bl, 0x20
xor al, bl
inc esi
jmp 0x441087
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x440fec

Function at 0x477c74
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x477c7a
ret
Function at 0x483250
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x45bf45
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x30], 0
jne 0x4833e9
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x38], 0
je 0x4833e9
mov eax, dword [ebp - 0xc]
add eax, 0x2c
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x28
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax + 0x28]
add ebx, ebx
add ebx, ebx
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
imul ebx
push eax
lea eax, [ebp - 8]
mov ecx, 1
mov edx, dword [0x45bd54]
call fcn.0042f520
add esp, 4
lea eax, [ebp - 4]
call fcn.004308b8
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x38]
push eax
mov eax, dword [0x504f50]
push eax
call fcn.0046e390
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 8]
call fcn.0042f358
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
lea eax, [ebp - 0x38]
xor ecx, ecx
mov edx, 0x2c
call fcn.0042bc34
mov dword [ebp - 0x38], 0x2c
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x28]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
neg eax
mov dword [ebp - 0x30], eax
mov word [ebp - 0x2c], 1
mov word [ebp - 0x2a], 0x20
mov dl, 1
mov eax, dword [0x44f0ec]
call fcn.0047fbdc
mov ebx, eax
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x30], ebx
xor ecx, ecx
push ebp
push 0x45beff
push dword fs:[ecx]
mov dword fs:[ecx], esp
mov eax, ebx
mov dl, 7
call fcn.00481858
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax + 0x2c]
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0x28]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov ebx, dword [eax]
call dword [ebx + 0x6c]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x2c]
push eax
push 0
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov edx, dword [eax]
call dword [edx + 0x70]
push eax
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
call fcn.004804fc
call fcn.0047ac64
push eax
call fcn.00432a80
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x30]
mov dl, 1
call fcn.00480868
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4833e9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45bf4c
lea eax, [ebp - 8]
mov edx, dword [0x45bd54]
call fcn.0042f52c
lea eax, [ebp - 4]
call fcn.004308b8
ret
Function at 0x4e4934
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4e4962
mov eax, ebx
call fcn.004e53e8
cmp dword [ebx + 0x40], 0
je 0x4e495b
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4e49d3
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4e49c5
cmp dword [ebx + 8], 0
je 0x4e4984
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4e4996
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4e49c5
cmp dword [ebx + 8], 0
je 0x4e4977
cmp eax, 3
je 0x4e49a9
dec eax
jne 0x4e4977
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4e4977
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4e4977
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4e49f1
cmp dword [ebx + 0x14], 0xcc
je 0x4e49f1
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004e49fc
pop ebx
ret
Function at 0x401fd3
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40a674], 0
push esi
jne 0x40200a
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x401fe4
mov dword [ecx*4 + 0x40a670], eax
inc ecx
cmp ecx, 0x100
jl 0x401fdf
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40203b
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x40a670]
xor eax, esi
inc ecx
dec edx
jne 0x40201d
pop edi
not eax
pop esi
ret 0xc
Function at 0x4039d9
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x403a4b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
jmp 0x403a24
cmp dword [ebp + 0x10], ebx
jne 0x403a52
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.004039d9
test eax, eax
jne 0x403a36
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
je 0x403a0b
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
inc eax
jmp 0x403a4b
Function at 0x404601
Capabilities:
Identify system language via api

Disassembly:
cmp byte [0x42d000], 0
push ebx
push ebp
push esi
push edi
mov edi, 0xffff
mov ebx, 0x42d000
je 0x404620
push ebx
call fcn.0040685d
jmp 0x404626
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
xor ecx, ecx
mov esi, dword [0x426f24]
test esi, esi
je 0x404670
mov ecx, dword [0x426ee8]
mov ecx, dword [ecx + 0x5c]
mov edx, ecx
imul ecx, esi
neg edx
add ecx, dword [0x426f20]
add ecx, edx
dec esi
mov bp, word [ecx]
xor bp, ax
and ebp, edi
test bp, bp
je 0x40465e
test esi, esi
jne 0x404648
jmp 0x404670
mov edx, dword [ecx + 2]
mov dword [0x4266b4], edx
lea edx, [ecx + 6]
mov dword [0x4266b0], edx
cmp dword [0x4266b0], 0
jne 0x40468b
cmp di, 0xffff
jne 0x404687
mov edi, 0x3ff
jmp 0x404628
xor edi, edi
jmp 0x404628
movzx eax, word [ecx]
push eax
push ebx
call fcn.00406844
push 0xfffffffffffffffe
push 0x4266e0
call fcn.004068f4
push eax
push dword [0x423cf0]
call dword [sym.imp.USER32.dll_SetWindowTextA]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x406305
Capabilities:
Check if file exists
Create process on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push edi
push 0x10
pop ecx
xor eax, eax
push dword [ebp + 0xc]
lea edi, [ebp - 0x40]
mov dword [ebp - 0x44], 0x44
rep stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
je 0x406332
test al, 0x10
jne 0x406335
mov dword [ebp + 0xc], ecx
lea eax, [ebp - 0x44]
push 0x425a78
push eax
push dword [ebp + 0xc]
push ecx
push ecx
push ecx
push ecx
push ecx
push dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x406365
push dword [0x425a7c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x425a78]
leave
ret 8

Function at 0x40639a
Capabilities:
Delete directory
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004064d6
test eax, eax
je 0x406400
test byte [ebp + 0xc], 1
push esi
je 0x4063e3
and dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 3
call sub.KERNEL32.dll_lstrlenA
and byte [eax + esi + 1], 0
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
mov word [ebp - 0x10], 0x414
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
jmp 0x406400
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
jne 0x406400
test byte [ebp + 0xc], 2
je 0x406400
inc dword [0x426f50]
push eax
push esi
call fcn.00406636
pop esi
leave
ret 8
Function at 0x4064d6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x424d38
push esi
call sub.KERNEL32.dll_lstrcpyA
push esi
call fcn.00406484
test eax, eax
jne 0x4064f5
xor eax, eax
jmp 0x40653e
test byte [0x426ef0], 0x80
je 0x406509
mov cl, byte [eax]
test cl, cl
je 0x4064f1
cmp cl, 0x5c
je 0x4064f1
mov edi, eax
sub edi, esi
jmp 0x406523
call fcn.00406bb0
test eax, eax
je 0x40651d
test byte [eax], 0x10
je 0x4064f1
push esi
call fcn.00406431
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40650f
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x4065bb
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x4065ea
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x409334]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add dl, 0x61
mov byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x406632
test edi, edi
jne 0x4065f5
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x40662c
Function at 0x406636
Capabilities:
Get common file path
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
xor ebp, ebp
cmp eax, ebp
je 0x40666f
push str.MoveFileExA
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebp
je 0x40666f
push 5
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call eax
cmp eax, ebp
jne 0x4067a0
mov eax, dword [0x409360]
cmp dword [esp + 0x18], ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x425a88], eax
mov esi, 0x400
mov ebx, 0x425a88
je 0x4066aa
push 1
push ebp
push dword [esp + 0x20]
call fcn.004065bb
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push ebx
push dword [esp + 0x20]
call edi
push esi
mov esi, 0x425678
push esi
push dword [esp + 0x1c]
call edi
push esi
push ebx
push str._s_s_r_n
push 0x425278
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, eax
mov dword [esp + 0x18], edi
push 0x3f0
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.wininit.ini
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebp
push 0x8000080
push 4
push ebp
push ebp
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4067a0
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push ebp
lea eax, [esi + edi + 0xa]
push eax
push ebp
push 4
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, ebp
mov dword [esp + 0x14], eax
je 0x406788
push ebp
push ebp
push ebp
push 2
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, ebp
je 0x40677e
push str._Rename__r_n
push edi
call fcn.00406543
cmp eax, ebp
jne 0x4067a7
lea eax, [edi + esi]
push str._Rename__r_n
push eax
call sub.KERNEL32.dll_lstrcpyA
add esi, 0xa
mov eax, esi
push dword [esp + 0x18]
add eax, edi
push 0x425278
push eax
call fcn.00406597
push edi
add esi, dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
push ebp
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x409338
push eax
call fcn.00406543
cmp eax, ebp
je 0x406760
inc eax
lea edx, [edi + esi]
cmp eax, edx
mov ecx, eax
jae 0x4067d6
mov ebp, dword [esp + 0x18]
mov dl, byte [ecx]
mov byte [ecx + ebp], dl
inc ecx
lea edx, [edi + esi]
cmp ecx, edx
jb 0x4067c3
xor ebp, ebp
sub eax, edi
jmp 0x406762
Function at 0x4067da
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x14]
xor ebx, ebx
push eax
push 0x20019
push ebx
push dword [ebp + 0xc]
mov byte [esi], bl
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40683e
lea eax, [ebp + 8]
mov dword [ebp + 8], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40682d
cmp dword [ebp + 0x14], 1
je 0x40682f
cmp dword [ebp + 0x14], 2
je 0x40682f
mov byte [esi], bl
push dword [ebp + 0xc]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4068f4
Capabilities:
Check if file exists
Get common file path
Get file attributes
Persist via run registry key

Disassembly:
mov eax, dword [esp + 8]
test eax, eax
jge 0x40690d
mov ecx, dword [0x4266b0]
lea eax, [eax*4 + 4]
sub ecx, eax
mov eax, dword [ecx]
mov ecx, dword [0x426f18]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, 0x425ea0
lea ebp, [eax + ecx]
cmp esi, edi
jb 0x406939
cmp esi, 0x4266a0
jae 0x406939
and dword [esp + 0x14], 0
jmp 0x406adf
mov esi, edi
jmp 0x406adf
mov edx, esi
mov ecx, 0x400
sub edx, edi
cmp edx, ecx
jge 0x406aea
movzx eax, al
inc ebp
cmp eax, 0xff
jne 0x406968
mov al, byte [ebp]
mov byte [esi], al
inc esi
inc ebp
jmp 0x406adf
cmp eax, 0xfd
jne 0x406abe
mov di, word [ebp]
and edi, 0xfff
dec edi
inc ebp
inc ebp
cmp edi, 0x1c
je 0x406a6e
jle 0x406a61
cmp edi, 0x21
jle 0x4069c9
cmp edi, 0x22
je 0x406a53
cmp edi, 0x23
je 0x4069bc
cmp edi, 0x24
jne 0x406a61
push dword [0x426ee4]
push esi
call fcn.00406844
jmp 0x406aa9
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
jmp 0x406aa9
mov eax, dword [edi*4 + 0x409268]
push eax
push 0x4092f7
mov dword [esp + 0x20], eax
call sub.KERNEL32.dll_lstrcpyA
xor ebx, ebx
cmp edi, 0x21
setne bl
and ebx, dword [0x426f44]
test ebx, ebx
mov byte [0x4092c1], 0x5c
mov eax, str.Common
jne 0x406a01
mov eax, dword [esp + 0x18]
push esi
push eax
xor eax, eax
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
test ebx, ebx
setne al
add eax, 0x80000001
push eax
call fcn.004067da
cmp byte [esi], 0
jne 0x406a32
test ebx, ebx
je 0x406a27
xor ebx, ebx
jmp 0x4069ed
push 0x42d400
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp edi, 0x21
jne 0x406a9a
push str.MicrosoftInternet_ExplorerQuick_Launch
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x406a53
test al, 0x10
jne 0x406aa9
push 0x400
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
jmp 0x406a9a
mov eax, edi
shl eax, 0xa
add eax, section..ndata
push eax
jmp 0x406a94
and byte [0x4092c1], 0
push esi
push str.ProgramFilesDir
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push 0x80000002
call fcn.004067da
cmp byte [esi], 0
jne 0x406aa9
push str.C:Program_Files
push esi
call sub.KERNEL32.dll_lstrcpyA
cmp edi, 0x14
jle 0x406aaf
cmp edi, 0x25
jge 0x406aaf
cmp edi, 0x1a
je 0x406aaf
push esi
call fcn.00406b0f
push esi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
mov edi, 0x425ea0
jmp 0x406adf
cmp eax, 0xfe
jne 0x406adc
movsx eax, word [ebp]
inc ebp
push eax
push esi
inc ebp
call fcn.004068f4
push esi
call sub.KERNEL32.dll_lstrlenA
add esi, eax
jmp 0x406adf
mov byte [esi], al
inc esi
mov al, byte [ebp]
test al, al
jne 0x406940
and byte [esi], 0
cmp dword [esp + 0x14], 0
je 0x406b06
push 0x400
push edi
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x406b08
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x680b2c
Capabilities:
Encode data using xor

Disassembly:
bt ax, di
sub ecx, dword [edx + 0x10]
push edx
push ebp
push edx
cmp ecx, dword [edx + 0x14]
pushal
call fcn.0067fc47
invalid
cmp ecx, 0xffff
pushal
lea esp, [esp + 0x24]
jbe 0x67f009
sbb si, 0x7da1
ror di, 0xf
dec si
mov edi, dword [edx + 0x24]
sbb si, si
add edi, eax
rol si, 4
movzx si, dl
mov esi, dword [edx + 0x20]
clc
clc
jp 0x681651
call fcn.0068105c
fisttp dword [ebx]
jae 0x680b74
cmpsd dword [esi], dword es:[edi]
or esp, dword [ecx - 0x5d]
insd dword es:[edi], dx
mov byte [edi + 0x5051d0fe], cl
inc esi
and byte [ecx + 0x37], dl
invalid
push ecx
aaa
add eax, 0x417a66ba
jns 0x680b7a
invalid
Function at 0x494450
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push 0x17
mov dword [esp + 0x18], ebp
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov esi, dword [esp + 0x24]
mov ebx, dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi + 0x10c], eax
mov eax, dword [esp + 0x14]
lea edi, [esi + 8]
mov ecx, eax
inc eax
push ecx
mov dword [esp + 0x18], eax
call ebx
mov dword [edi], eax
mov eax, dword [esp + 0x14]
add edi, 4
cmp eax, 0x1f
jl 0x49447c
call fcn.00494380
mov edi, dword [sym.imp.USER32.dll_SystemParametersInfoW]
lea eax, [esi + 0x110]
push ebp
push eax
push ebp
push 0x5e
call edi
lea ecx, [esi + 0x114]
push ebp
push ecx
push ebp
push 0x70
call edi
push 0x859990
call fcn.004943d0
add esp, 4
lea edx, [esi + 0x178]
push ebp
push edx
push ebp
push 0x2006
call edi
lea eax, [esp + 0x18]
mov dword [esi + 0x11c], ebp
push eax
push 0x20019
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push str.Control_PanelAppearanceNew_Schemes
push 0x80000001
call ebp
test eax, eax
jne 0x4945ab
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x14]
lea edi, [esi + 0x1188]
push ecx
push edi
push eax
push eax
push str.SelectedStyle
push edx
mov dword [esp + 0x2c], 0x28
mov word [edi], ax
call ebx
test eax, eax
jne 0x4945a0
cmp dword [esp + 0x14], 2
jbe 0x4945a0
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push 0x20019
push 0
push edi
push ecx
call ebp
test eax, eax
jne 0x4945a0
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x12], ax
lea edx, [esp + 0x14]
lea eax, [esp + 0x12]
push edx
push eax
push 0
push 0
push str.SelectedSize
push ecx
mov dword [esp + 0x2c], 0x28
call ebx
cmp word [esp + 0x12], 0
je 0x49458c
cmp dword [esp + 0x14], 2
jbe 0x49458c
mov eax, 0xfffffffe
jmp 0x49458f
or eax, 0xffffffff
mov edx, dword [esp + 0x1c]
mov dword [esi + 0x11b0], eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret