joyce8/EMBER2024-capa huggingface dataset:
Function at 0x49de0e
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [0x5d7880], 0
push edi
push 4
pop edi
mov dword [ebp - 4], 1
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], edi
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternationalScripts26
je 0x49de38
mov eax, str.SoftwareMicrosoftInternet_ExplorerInternational
lea ecx, [ebp - 8]
push ecx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x49de93
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov esi, str.AutoDetect
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xc]
xor eax, eax
cmp dword [ebp - 4], eax
sete al
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
leave
ret
Function at 0x49e0ac
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x5975a8
push 0x539300
mov eax, dword fs:[0]
push eax
push ecx
push ecx
mov eax, 0x1090
call fcn.005482e0
mov eax, dword [0x5afee0]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov ebx, ecx
mov dword [ebp - 0x106c], ebx
mov edi, edx
mov dword [ebp - 0x1068], edi
push 0x208
push 0
push edi
call fcn.00537010
push 7
mov esi, str.file:__
push esi
push ebx
call fcn.005330a4
add esp, 0x18
test eax, eax
jne 0x49e139
push esi
push 0x57cb68
push 0x103
push edi
call fcn.00532a01
add esp, 0x10
xor eax, eax
inc eax
jmp 0x49e279
push 6
mov esi, str.res:__
push esi
push ebx
call fcn.005330a4
add esp, 0xc
test eax, eax
je 0x49e11d
push 0x3c
pop esi
push esi
push 0
lea eax, [ebp - 0x10a8]
push eax
call fcn.00537010
add esp, 0xc
mov dword [ebp - 0x10a8], esi
mov dword [ebp - 0x1098], edi
mov dword [ebp - 0x1094], 0x104
and dword [ebp - 4], 0
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x49e182
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x10a8]
push ecx
mov edi, 0x10000000
push edi
push eax
push ebx
mov esi, dword [sym.imp.WININET.dll_InternetCrackUrlW]
call esi
test eax, eax
jne 0x49e25c
mov word [ebp - 0x1064], ax
push 0x1046
push eax
lea eax, [ebp - 0x1062]
push eax
call fcn.00537010
push ebx
push str.http:___s
push 0x823
lea eax, [ebp - 0x1064]
push eax
call fcn.00532a01
add esp, 0x1c
lea eax, [ebp - 0x1064]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x49e1eb
sub eax, edx
sar eax, 1
lea ecx, [ebp - 0x10a8]
push ecx
push edi
push eax
lea eax, [ebp - 0x1064]
push eax
call esi
test eax, eax
jne 0x49e25c
lea eax, [ebp - 0x1064]
push eax
push 0x57cb68
push 0x103
push dword [ebp - 0x1068]
call fcn.00532a01
add esp, 0x10
mov dword [ebp - 4], 0xfffffffe
jmp 0x49e277
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1068]
test eax, eax
je 0x49e277
cmp word [eax], 0
jne 0x49e131
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.0052f7d0
leave
ret
Function at 0x49e3b9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56400b
mov eax, dword fs:[0]
push eax
mov eax, 0x2884
call fcn.005482e0
mov eax, dword [0x5afee0]
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 eax, dword [ebp + 0x1c]
mov dword [ebp - 0x288c], eax
xor eax, eax
xor edi, edi
push 0x2450
mov word [ebp - 0x2880], ax
lea eax, [ebp - 0x287c]
mov esi, edx
push edi
push eax
mov ebx, ecx
mov dword [ebp - 0x2884], esi
mov dword [ebp - 0x2888], edi
call fcn.00537010
add esp, 0xc
cmp dword [ebp + 0xc], edi
jne 0x49e434
cmp esi, edi
jne 0x49e434
xor eax, eax
jmp 0x49e5ae
push edi
push ebx
lea esi, [ebp - 0x2880]
call fcn.00490908
pop ecx
pop ecx
test eax, eax
je 0x49e5a8
push 0x62f48
call fcn.0052fe0a
pop ecx
mov dword [ebp - 0x2890], eax
mov dword [ebp - 4], edi
cmp eax, edi
je 0x49e46d
push eax
call fcn.0049052a
mov esi, eax
jmp 0x49e46f
xor esi, esi
or dword [ebp - 4], 0xffffffff
cmp esi, edi
je 0x49e5a8
push ebx
mov eax, esi
call fcn.0042bd35
mov eax, dword [ebp + 8]
push dword [ebp - 0x2884]
mov dword [esi + 0x62ee4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x26b0], eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
mov dword [esi + 0x26a0], eax
inc ebx
mov eax, esi
mov dword [esi + 0x2468], ebx
mov dword [esi + 0x26a4], 0x49e320
call fcn.00494bce
push dword [ebp + 0x14]
mov eax, esi
call fcn.00494bce
push edi
mov eax, esi
call fcn.00494bce
mov eax, dword [ebp - 0x288c]
mov dword [ebp - 0x2884], eax
xor eax, eax
push 0x208
mov word [ebp - 0x428], ax
lea eax, [ebp - 0x426]
push edi
push eax
call fcn.00537010
add esp, 0xc
cmp dword [ebp + 0xc], edi
jne 0x49e50b
lea eax, [ebp - 0x428]
mov dword [ebp - 0x2884], eax
cmp dword [ebp - 0x2884], edi
je 0x49e5a1
xor eax, eax
push 0x206
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push edi
push eax
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push dword [ebp - 0x2884]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push 0x58c244
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov eax, dword [ebp - 0x2884]
xor ecx, ecx
cmp cx, word [eax]
je 0x49e5a1
push eax
mov eax, esi
call fcn.0042bd69
call fcn.004909e9
test eax, eax
je 0x49e5a1
cmp dword [ebp + 0xc], edi
je 0x49e5c8
push 0xa
mov eax, esi
call fcn.00490da0
cmp dword [esi + 0x5d120], 7
jne 0x49e5a1
mov dword [ebp - 0x2888], ebx
mov eax, dword [esi]
push ebx
mov ecx, esi
call dword [eax]
mov eax, dword [ebp - 0x2888]
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.0052f7d0
leave
ret
mov dword [ebp - 0x2888], ebx
jmp 0x49e5a8
Function at 0x49e6b5
Capabilities:
Hash data with md5

Disassembly:
push esi
xor ecx, ecx
push 0x40
lea esi, [eax + 0x5c]
push ecx
push esi
mov dword [eax + 0x18], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 4], 0x67452301
mov dword [eax + 8], 0xefcdab89
mov dword [eax + 0xc], 0x98badcfe
mov dword [eax + 0x10], 0x10325476
call fcn.00537010
add esp, 0xc
mov byte [esi], 0x80
pop esi
ret

Function at 0x4a30f5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1668
call fcn.005482e0
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
xor edi, edi
lea eax, [ebp - 0x412]
push edi
push eax
call fcn.00537010
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.00537010
add esp, 0x18
lea eax, [ebp - 0x414]
push eax
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x104
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.00537010
push 0x57d2fc
lea eax, [ebp - 0x20c]
push eax
push str._s_s_
lea eax, [ebp - 0x61c]
push 0x103
push eax
call fcn.00532a01
xor eax, eax
push 0x1046
mov word [ebp - 0x1664], ax
lea eax, [ebp - 0x1662]
push edi
push eax
call fcn.00537010
add esp, 0x2c
push 0x2000
lea eax, [ebp - 0x1668]
push eax
lea eax, [ebp - 0x1664]
push eax
lea eax, [ebp - 0x61c]
push eax
mov dword [ebp - 0x1668], 0x823
call dword [sym.imp.SHLWAPI.dll_UrlEscapeW]
lea eax, [ebp - 0x1664]
push eax
push str.res:___s
push 0x822
push 0x5de3a8
call fcn.00532a01
mov ecx, dword [ebp - 4]
add esp, 0x10
pop edi
xor ecx, ebp
pop esi
call fcn.0052f7d0
leave
ret

Function at 0x4a32a4
Capabilities:
Check if file exists
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, esi
call fcn.004a3360
xor eax, eax
cmp dword [ebp + 8], eax
je 0x4a32dd
mov edx, dword [ebp + 8]
push esi
mov ecx, 0x104
call fcn.00408533
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a32da
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
xor eax, eax
inc eax
pop ebp
ret 4

Function at 0x4a32e1
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, eax
lea esi, [edi + 0x208]
xor ebx, ebx
cmp dword [esi], ebx
je 0x4a3306
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a3306
xor eax, eax
inc eax
jmp 0x4a3359
lea eax, [ebp - 4]
push edi
push eax
call fcn.004a3b97
mov edi, dword [ebp - 4]
xor eax, eax
cmp dword [ebp + 8], ebx
push ebx
setne al
lea eax, [eax*4 + 2]
push eax
push esi
push edi
call fcn.004f477b
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x4a334a
cmp dword [ebp + 0xc], eax
je 0x4a334a
push 9
push str._453c.net
push dword [esi]
call fcn.004f4abc
add esp, 0xc
lea eax, [edi - 0x10]
call fcn.00407d09
xor eax, eax
test ebx, ebx
sete al
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a3722
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push 0xa4
mov eax, 0x55e2d5
call fcn.00539a44
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xb0], eax
test eax, eax
je 0x4a38ad
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [0x58c3fc]
mov edx, dword [0x58c400]
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0xa4], edx
xor eax, eax
lea edi, [ebp - 0xa0]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 0x94], 1
mov ebx, 0x58c404
mov esi, ebx
lea edi, [ebp - 0x92]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x88]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov byte [ebp - 0x7e], 2
mov esi, 0x58c410
lea edi, [ebp - 0x7c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
lea edi, [ebp - 0x70]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov byte [ebp - 0x68], 4
mov esi, ebx
lea edi, [ebp - 0x66]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
xor eax, eax
lea edi, [ebp - 0x5c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [ebp - 0x50], ecx
xor eax, eax
mov byte [ebp - 0x52], 8
mov dword [ebp - 0x4c], edx
lea edi, [ebp - 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [0x5beb28]
mov ecx, 0x5beb28
mov byte [ebp - 0x3c], 0x10
call dword [eax + 0xc]
lea ebx, [eax + 0x10]
mov dword [ebp - 0xac], ebx
and dword [ebp - 4], 0
push 5
lea esi, [ebp - 0xa8]
pop edi
mov al, byte [ebp + 8]
test byte [esi + 0x14], al
je 0x4a3825
cmp dword [ebx - 0xc], 0
jle 0x4a3812
push 0x58c41c
lea eax, [ebp - 0xac]
push eax
call fcn.0041a591
push esi
lea eax, [ebp - 0xac]
push eax
call fcn.0041a591
mov ebx, dword [ebp - 0xac]
add esi, 0x16
dec edi
jne 0x4a37f3
push 9
xor eax, eax
pop ecx
mov word [ebp - 0x38], ax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
movzx eax, word [ebp + 0xc]
push 0
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
movzx eax, ax
push 0x13
shl eax, 0x10
lea ecx, [ebp - 0x38]
or eax, 1
push ecx
push eax
call dword [sym.imp.USER32.dll_GetKeyNameTextW]
push 0x60
pop eax
cmp ax, word [ebp - 0x38]
jne 0x4a386e
push 0x7e
pop eax
mov word [ebp - 0x38], ax
cmp dword [ebx - 0xc], 0
mov edi, dword [ebp - 0xb0]
lea eax, [ebp - 0x38]
push eax
jle 0x4a3893
push ebx
push 0x58c420
push 0x823
call fcn.00403d4f
add esp, 0x10
jmp 0x4a38a5
push 0x57cb68
push 0x823
call fcn.00403d4f
add esp, 0xc
lea eax, [ebx - 0x10]
call fcn.00407d09
call fcn.00539ac7
ret
Function at 0x4a3cef
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp - 0x320]
push eax
mov dword [ebp - 0x320], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor esi, esi
cmp dword [ebp - 0x310], 2
mov dword [0x5d7874], esi
mov dword [0x5d7880], esi
mov dword [0x5d7878], esi
mov dword [0x5d787c], esi
mov dword [0x5d7884], esi
mov dword [0x5d7888], esi
mov dword [0x5d7890], esi
mov dword [0x5d7894], esi
mov dword [0x5d7898], esi
mov dword [0x5d789c], esi
mov dword [0x5d78a0], esi
mov dword [0x5d78a4], esi
mov dword [0x5d78ac], esi
jne 0x4a3e57
cmp dword [ebp - 0x31c], 5
jne 0x4a3dc9
cmp dword [ebp - 0x318], esi
jne 0x4a3d98
mov dword [0x5d7880], 1
jmp 0x4a3e6a
xor eax, eax
inc eax
cmp dword [ebp - 0x318], eax
jne 0x4a3dad
mov dword [0x5d7878], eax
jmp 0x4a3e6a
cmp dword [ebp - 0x318], 2
jne 0x4a3e6a
mov dword [0x5d7878], 1
jmp 0x4a3e6a
cmp dword [ebp - 0x31c], 6
jne 0x4a3e37
xor eax, eax
inc eax
mov dword [0x5d7890], eax
mov dword [0x5d7878], eax
mov dword [0x5d787c], eax
cmp dword [ebp - 0x318], eax
jne 0x4a3df1
mov dword [0x5d7884], eax
jbe 0x4a3e6a
xor edi, edi
push str.RtlGetVersion
inc edi
push str.ntdll.dll
mov dword [0x5d7884], edi
mov dword [0x5d7888], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
je 0x4a3e6a
lea ecx, [ebp - 0x434]
push ecx
call eax
cmp dword [ebp - 0x430], 0xa
jne 0x4a3e6a
mov dword [0x5d788c], edi
jmp 0x4a3e6a
jbe 0x4a3e6a
xor eax, eax
inc eax
mov dword [0x5d7878], eax
mov dword [0x5d787c], eax
mov dword [0x5d7884], eax
mov dword [0x5d7888], eax
mov dword [0x5d788c], eax
jmp 0x4a3e6a
cmp dword [ebp - 0x310], 1
jne 0x4a3e6a
mov dword [0x5d7874], 1
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call fcn.00537010
add esp, 0xc
cmp dword [0x5d7884], esi
je 0x4a3eab
push ebx
call fcn.004a47ce
mov ebx, 0x103
lea esi, [ebp - 0x20c]
mov edi, eax
call fcn.00496756
pop ebx
jmp 0x4a3ebe
lea eax, [ebp - 0x20c]
push 0x103
push eax
call fcn.004a480b
pop ecx
pop ecx
mov ax, word [ebp - 0x20c]
push 0x37
pop ecx
pop edi
pop esi
cmp cx, ax
jne 0x4a3edb
mov dword [0x5d7898], 1
jmp 0x4a3f4d
push 0x36
pop ecx
cmp cx, ax
jne 0x4a3eef
mov dword [0x5d7894], 1
jmp 0x4a3f4d
push 0x38
pop ecx
cmp cx, ax
jne 0x4a3f03
mov dword [0x5d789c], 1
jmp 0x4a3f4d
push 0x39
pop ecx
cmp cx, ax
jne 0x4a3f17
mov dword [0x5d78a0], 1
jmp 0x4a3f4d
push 0x31
pop ecx
cmp cx, ax
jne 0x4a3f4d
push 0x30
pop eax
cmp ax, word [ebp - 0x20a]
jne 0x4a3f37
mov dword [0x5d78a4], 1
jmp 0x4a3f4d
push 0x31
pop eax
cmp ax, word [ebp - 0x20a]
jne 0x4a3f4d
mov dword [0x5d78a8], 1
call fcn.004a418b
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov dword [0x5d78ac], eax
call fcn.0052f7d0
leave
ret
Function at 0x4a3f63
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x108], 2
jne 0x4a4029
cmp dword [ebp - 0x114], 5
jne 0x4a4029
cmp dword [ebp - 0x110], 1
jne 0x4a4029
mov edx, str.Service_Pack_2
lea eax, [ebp - 0x104]
mov cx, word [eax]
cmp cx, word [edx]
jne 0x4a3fe1
test cx, cx
je 0x4a3fdd
mov cx, word [eax + 2]
cmp cx, word [edx + 2]
jne 0x4a3fe1
add eax, 4
add edx, 4
test cx, cx
jne 0x4a3fbb
xor eax, eax
jmp 0x4a3fe6
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4a4024
mov ecx, str.Service_Pack_3
lea eax, [ebp - 0x104]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a401b
test dx, dx
je 0x4a4017
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a401b
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a3ff5
xor eax, eax
jmp 0x4a4020
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4a4029
xor eax, eax
inc eax
jmp 0x4a402b
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052f7d0
leave
ret

Function at 0x4a4071
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x5e0a7c]
and dword [ebp - 0xc], 0
push esi
push edi
push 0x10
push 1
push eax
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4a412b
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push edi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4a412b
test esi, esi
je 0x4a412b
push ebx
push esi
call fcn.0052f69b
push esi
mov ebx, eax
push edi
push ebx
call fcn.00537090
add esp, 0x10
test ebx, ebx
je 0x4a4116
and dword [ebp - 4], 0
and dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push 0x57c664
push ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4a4116
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
mov edx, dword [ebp + 8]
mov dword [edx], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4a410f
mov eax, dword [eax + 0xc]
mov dword [ecx], eax
mov dword [ebp - 0xc], 1
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x4a412a
push ebx
call fcn.00530cbd
pop ecx
pop ebx
mov eax, dword [ebp - 0xc]
pop edi
pop esi
leave
ret
Function at 0x4a41c8
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebx
push 0xd
xor ebx, ebx
call dword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
je 0x4a4228
push ebx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4a4228
push esi
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
cmp esi, ebx
je 0x4a4221
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4a4221
push eax
push 0x57cb68
push 0x1048
push edi
call fcn.00532a01
add esp, 0x10
xor eax, eax
push esi
mov word [edi + 0x208e], ax
inc ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4a422c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x4a4239
sub eax, edx
sar eax, 1
mov esi, eax
cmp esi, ebx
jle 0x4a42b1
push ebx
inc esi
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4a42b1
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea edi, [esi + esi]
push edi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
cmp esi, ebx
je 0x4a42aa
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4a42a3
push edi
push dword [ebp + 8]
push eax
call fcn.00537090
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
je 0x4a42a3
xor ebx, ebx
inc ebx
jmp 0x4a42aa
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x4a42b7
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1684
call fcn.005482e0
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x1664], eax
mov esi, ecx
xor ebx, ebx
xor eax, eax
cmp esi, ebx
je 0x4a4420
push edi
push 0x144e
mov word [ebp - 0x165c], ax
lea eax, [ebp - 0x165a]
push ebx
push eax
call fcn.00537010
lea eax, [ebp - 0x1660]
push eax
push esi
mov dword [ebp - 0x1660], 0x7c
call fcn.00536109
mov esi, eax
add esp, 0x14
cmp esi, ebx
je 0x4a43cd
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00537010
push esi
push dword [ebp - 0x1664]
lea eax, [ebp - 0x20c]
push str._s_s
push 0x103
push eax
call fcn.00532a01
lea eax, [ebp - 0x20c]
add esp, 0x20
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4a4369
sub eax, edx
lea ecx, [ebp - 0x20c]
sar eax, 1
mov esi, ecx
mov dx, word [ecx]
inc ecx
inc ecx
test dx, dx
jne 0x4a437f
sub ecx, esi
lea edi, [ebp + ebx*2 - 0x165c]
dec edi
mov edx, ecx
dec edi
mov cx, word [edi + 2]
inc edi
inc edi
test cx, cx
jne 0x4a4396
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea ebx, [ebx + eax + 1]
lea eax, [ebp - 0x1660]
mov ecx, edx
push eax
and ecx, 3
push 0
rep movsb byte es:[edi], byte [esi]
call fcn.00536109
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4a4325
xor eax, eax
push 7
pop ecx
lea edi, [ebp - 0x1684]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor eax, eax
mov dword [ebp - 0x166e], eax
mov dword [ebp - 0x1684], eax
mov dword [ebp - 0x166a], eax
lea eax, [ebp - 0x165c]
mov dword [ebp - 0x167c], eax
mov eax, 0x454
mov word [ebp - 0x1674], ax
lea eax, [ebp - 0x1684]
push eax
mov dword [ebp - 0x1680], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0052f7d0
leave
ret
Function at 0x4a47ce
Capabilities:
Get common file path
Get program files directory

Disassembly:
xor eax, eax
push ebx
mov ebx, 0x5e0a88
cmp ax, word [0x5e0a88]
jne 0x4a4807
push esi
push edi
push eax
push 0x26
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov edi, ebx
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x4a47f0
push 0x10
pop ecx
mov esi, str.internet_exploreriexplore.exe
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x4a4885
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5afee0]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
xor eax, eax
test ebx, ebx
je 0x4a493c
push edi
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.00537010
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
xor edi, edi
push str.CLSIDD27CDB6E_AE6D_11CF_96B8_444553540000InprocServer32
inc edi
push 0x80000000
mov dword [ebp - 0x218], edi
mov dword [ebp - 0x214], 0x206
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x4a4935
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4a4935
lea eax, [ebp - 0x20c]
push eax
push 0x57cb68
push 0x103
push ebx
call fcn.00532a01
add esp, 0x10
mov dword [ebp - 0x210], edi
mov eax, dword [ebp - 0x210]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0052f7d0
leave
ret
Function at 0x4a4d71
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [ebp - 4], edi
cmp dword [ebp + 0xc], edi
je 0x4a4e71
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 4]
push eax
push 0x40000
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4a4e62
push dword [ebp + 0x10]
push 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
test eax, eax
jne 0x4a4e62
cmp dword [ebp + 0x14], edi
je 0x4a4e5f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 4]
push eax
push 0x20019
push edi
push dword [ebp + 0xc]
mov dword [ebp - 4], edi
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4a4e62
push edi
push edi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4a4e62
push 0x20a
call fcn.0052f69b
pop ecx
mov esi, eax
cmp dword [ebp - 8], edi
jbe 0x4a4e58
push 0x105
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
cmp eax, edi
jne 0x4a4e4b
push 1
push dword [ebp + 0x10]
push esi
push dword [ebp - 4]
call fcn.004a4d71
add esp, 0x10
jmp 0x4a4e52
cmp eax, 0x103
je 0x4a4e58
inc ebx
cmp ebx, dword [ebp - 8]
jb 0x4a4e24
push esi
call fcn.00530cbd
pop ecx
xor ebx, ebx
inc ebx
pop esi
cmp dword [ebp - 4], edi
je 0x4a4e71
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, ebx
pop ebx
leave
ret