joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a1680
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x5e525b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x704dd8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
mov ecx, dword [esi + 0x35c]
xor ebp, ebp
cmp ecx, ebp
je 0x4a16c7
mov eax, dword [ecx]
mov edx, dword [eax]
push 1
call edx
mov dword [esi + 0x35c], ebp
push 0x394
call fcn.004ca5aa
add esp, 4
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], ebp
cmp eax, ebp
je 0x4a16ec
push ebp
mov ecx, eax
call fcn.00537a30
mov ebx, eax
jmp 0x4a16ee
xor ebx, ebx
cmp dword [esi + 0x358], 8
mov dword [esp + 0x24], 0xffffffff
jb 0x4a1707
mov esi, dword [esi + 0x344]
jmp 0x4a170d
add esi, 0x344
push 0x613e64
push esi
call fcn.004ebeb8
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x4a1765
push 2
push ebp
push edi
call fcn.004eb9c2
push edi
call fcn.004ec5ea
push edi
mov ebp, eax
call fcn.004ec387
add esp, 0x14
push ebp
push 0x22
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4a175c
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x4a177b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push edi
call fcn.004ebb03
add esp, 4
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
push edi
push 1
push ebp
push eax
call fcn.004ec36a
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call fcn.004ebb03
add esp, 4
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
push ebp
push eax
mov ecx, ebx
call fcn.0053b9d0
push esi
test al, al
jne 0x4a17cb
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x35c]
push eax
push 1
push 0x96
push 0x120
mov ecx, ebx
call fcn.00538740
test al, al
jne 0x4a1821
test ebx, ebx
je 0x4a1801
mov edx, dword [ebx]
mov eax, dword [edx]
push 1
mov ecx, ebx
call eax
mov dword [esi + 0x35c], 0
xor al, al
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
mov ecx, dword [esi + 0x334]
push ebx
call fcn.00409ec0
mov ecx, dword [esi + 0x338]
push ebx
call fcn.004362f0
mov dword [esi + 0x35c], ebx
mov al, 1
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret
Function at 0x4a3640
Capabilities:
Encode data using base64

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
test esi, esi
jne 0x4a364f
xor eax, eax
pop esi
pop ecx
ret
lea ecx, [esi*8]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
add ecx, ecx
mov edx, ecx
lea ecx, [esi*8]
sub ecx, edx
sub ecx, 2
je 0x4a3683
sub ecx, 2
jne 0x4a3686
add eax, 2
jmp 0x4a3686
add eax, 3
push ebx
mov ebx, dword [esp + 0x1c]
inc eax
cmp dword [ebx], eax
jge 0x4a369b
mov dword [ebx], eax
pop ebx
mov eax, 0xfffffff0
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x18]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
push ebp
push edi
lea eax, [eax + eax*2]
xor edi, edi
test eax, eax
jle 0x4a3740
lea edx, [eax - 1]
mov eax, 0xaaaaaaab
mul edx
shr edx, 1
inc edx
lea eax, [edx + edx*2]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
movzx esi, byte [eax]
movzx ebp, byte [eax + 1]
mov ebx, esi
sar ebx, 2
and ebx, 0x3f
movzx ebx, byte [ebx + 0x6143b0]
inc eax
movzx edi, byte [eax + 1]
mov byte [ecx], bl
inc eax
shl esi, 4
mov ebx, ebp
sar ebx, 4
add ebx, esi
and ebx, 0x3f
movzx ebx, byte [ebx + 0x6143b0]
mov esi, edi
sar esi, 6
inc ecx
mov byte [ecx], bl
lea esi, [esi + ebp*4]
and esi, 0x3f
movzx ebx, byte [esi + 0x6143b0]
inc ecx
mov byte [ecx], bl
and edi, 0x3f
movzx ebx, byte [edi + 0x6143b0]
inc ecx
mov byte [ecx], bl
inc eax
inc ecx
sub edx, 1
jne 0x4a36d4
mov ebx, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
jmp 0x4a3744
mov eax, dword [esp + 0x18]
cmp edi, esi
jge 0x4a379b
movzx edx, byte [eax]
lea ebp, [edi + 1]
cmp ebp, esi
jge 0x4a3758
movzx edi, byte [eax + 1]
jmp 0x4a375a
xor edi, edi
mov eax, edx
sar eax, 2
and eax, 0x3f
mov al, byte [eax + 0x6143b0]
mov byte [ecx], al
mov eax, edi
sar eax, 4
shl edx, 4
add eax, edx
and eax, 0x3f
mov dl, byte [eax + 0x6143b0]
inc ecx
mov byte [ecx], dl
inc ecx
cmp ebp, esi
jge 0x4a3793
and edi, 0xf
mov al, byte [edi*4 + 0x6143b0]
mov byte [ecx], al
jmp 0x4a3796
mov byte [ecx], 0x3d
inc ecx
mov byte [ecx], 0x3d
inc ecx
mov edx, ecx
sub edx, dword [esp + 0x20]
pop edi
pop ebp
mov dword [ebx], edx
pop ebx
mov byte [ecx], 0
xor eax, eax
pop esi
pop ecx
ret

Function at 0x4a37e0
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push esi
push edi
mov esi, ecx
call fcn.004abdd0
mov dword [esi], eax
call fcn.004abf30
mov dword [esi + 8], eax
call fcn.004abd30
mov dword [esi + 0xc], eax
call fcn.004abee0
mov dword [esi + 0x10], eax
call fcn.004abe40
mov dword [esi + 0x14], eax
call fcn.004abe90
mov edi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov dword [esi + 0x18], eax
mov eax, dword [esi]
lea ecx, [esi + 0x110]
push ecx
mov dword [esi + 4], eax
call edi
lea edx, [esi + 0x128]
push edx
call edi
lea eax, [esi + 0x118]
push eax
call edi
lea ecx, [esi + 0x158]
push ecx
call edi
lea edx, [esi + 0x138]
push edx
call edi
lea eax, [esi + 0x148]
push eax
call edi
mov ecx, dword [0x70cfb4]
pop edi
mov dword [esi + 0x100], ecx
pop esi
ret
Function at 0x4a3870
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x11c], eax
push 0x11c
lea eax, [esp + 4]
push 0
push eax
call fcn.004e9ba0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 4], 6
jne 0x4a38e2
mov eax, dword [esp + 8]
test eax, eax
je 0x4a38be
cmp eax, 1
jne 0x4a38e2
cmp byte [esp + 0x11a], 1
jne 0x4a38e2
mov eax, 1
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.004e8c89
add esp, 0x120
ret
mov ecx, dword [esp + 0x11c]
xor ecx, esp
xor eax, eax
call fcn.004e8c89
add esp, 0x120
ret

Function at 0x4a3900
Capabilities:
Check if file exists
Query environment variable

Disassembly:
mov eax, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push eax
push ebx
push str.USERPROFILE
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4a394b
push esi
push edi
mov edi, ebx
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a3921
mov ecx, 9
mov esi, 0x614490
push ebx
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
pop esi
setne al
pop ebx
ret 8
xor al, al
pop ebx
ret 8

Function at 0x4a3960
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x18
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x14], eax
push edi
mov edi, dword [esp + 0x20]
push str.Shell32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jne 0x4a3996
xor al, al
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004e8c89
add esp, 0x18
ret 8
push esi
push str.SHGetKnownFolderPath
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x4a39d0
lea eax, [esp + 0xc]
push eax
push str.A520A1A4_1780_4FF6_BD18_167343C5AF16
call dword [sym.imp.ole32.dll_CLSIDFromString]
lea ecx, [esp + 8]
push ecx
push 0
push 0x400
lea edx, [esp + 0x18]
push edx
call esi
test eax, eax
jge 0x4a39e5
pop esi
xor al, al
pop edi
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.004e8c89
add esp, 0x18
ret 8
mov eax, dword [esp + 8]
mov edx, edi
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a39f0
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x1c]
test eax, eax
pop esi
setne al
pop edi
xor ecx, esp
call fcn.004e8c89
add esp, 0x18
ret 8
Function at 0x4a3ab0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x620
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x61c], eax
push ebx
push esi
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.004e9ba0
add esp, 0xc
xor eax, eax
jmp 0x4a3af0
movzx ecx, word [eax + str.SOFTWARE_]
mov word [esp + eax + 0xc], cx
add eax, 2
test cx, cx
jne 0x4a3af0
push edi
lea edi, [esp + 0x10]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a3b10
mov ecx, 7
mov esi, 0x5fea14
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 8
pop edi
cmp dword [ebx + 0x54], esi
jb 0x4a3b3a
mov ecx, dword [ebx + 0x40]
jmp 0x4a3b3d
lea ecx, [ebx + 0x40]
lea edx, [esp + 0x214]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4a3b44
cmp dword [ebx + 0x38], esi
jb 0x4a3b5f
mov ecx, dword [ebx + 0x24]
jmp 0x4a3b62
lea ecx, [ebx + 0x24]
lea edx, [esp + 0x41c]
lea esp, [esp]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x4a3b70
lea edx, [esp + 8]
push edx
push 2
push 0
lea eax, [esp + 0x18]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a3bdd
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push 0x104
lea ecx, [esp + 0x218]
push ecx
push 1
push eax
push str.CfgRootPath
push edx
call esi
mov ecx, dword [esp + 8]
push 0x104
lea eax, [esp + 0x420]
push eax
push 1
push 0
push str.CfgUserPath
push ecx
call esi
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x624]
pop esi
pop ebx
xor ecx, esp
call fcn.004e8c89
add esp, 0x620
ret
Function at 0x4a47c0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x54], 8
jb 0x4a47e2
mov eax, dword [esi + 0x40]
jmp 0x4a47e5
lea eax, [esi + 0x40]
push str.Config
push eax
lea eax, [esp + 0xc]
push 0x6145c8
push eax
call fcn.00403b80
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a4819
lea edx, [esp + 4]
push edx
call fcn.004a6000
add esp, 4
lea eax, [esp + 4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a4820
mov ecx, dword [str.Config.ini]
mov edx, dword [0x6145b4]
mov dword [eax], ecx
mov ecx, dword [0x6145b8]
mov dword [eax + 4], edx
mov edx, dword [0x6145bc]
mov dword [eax + 8], ecx
mov ecx, dword [0x6145c0]
mov dword [eax + 0xc], edx
mov dx, word [0x6145c4]
mov dword [eax + 0x10], ecx
mov word [eax + 0x14], dx
lea eax, [esp + 4]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a4870
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x58]
call fcn.00401c70
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004e8c89
add esp, 0x20c
ret

Function at 0x4a48b0
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x54], 8
jb 0x4a48d2
mov eax, dword [esi + 0x40]
jmp 0x4a48d5
lea eax, [esi + 0x40]
push str.Config
push eax
lea eax, [esp + 0xc]
push 0x6145c8
push eax
call fcn.00403b80
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a4909
lea edx, [esp + 4]
push edx
call fcn.004a6000
add esp, 4
mov eax, dword [esp + 0x214]
test eax, eax
jg 0x4a4928
push str.Config.ini
lea eax, [esp + 8]
push eax
push 0x60248c
mov ecx, eax
push ecx
jmp 0x4a4936
push eax
lea edx, [esp + 8]
push edx
push str._s_d.ini
mov eax, edx
push eax
call fcn.00403b80
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a4945
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 8]
push ecx
lea ecx, [esi + 0x58]
call fcn.00401c70
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004e8c89
add esp, 0x20c
ret 4
Function at 0x4a4980
Capabilities:
Check if file exists

Disassembly:
sub esp, 0x20c
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov esi, ecx
cmp dword [esi + 0x54], 8
jb 0x4a49a2
mov eax, dword [esi + 0x40]
jmp 0x4a49a5
lea eax, [esi + 0x40]
push str.Config
push eax
lea eax, [esp + 0xc]
push 0x6145c8
push eax
call fcn.00403b80
add esp, 0x10
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4a49d9
lea edx, [esp + 4]
push edx
call fcn.004a6000
add esp, 4
lea eax, [esp + 4]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x4a49e0
mov ecx, dword [str.Related.ini]
mov edx, dword [0x6145fc]
mov dword [eax], ecx
mov ecx, dword [0x614600]
mov dword [eax + 4], edx
mov edx, dword [0x614604]
mov dword [eax + 8], ecx
mov ecx, dword [0x614608]
mov dword [eax + 0xc], edx
mov edx, dword [0x61460c]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], edx
lea eax, [esp + 4]
lea edx, [eax + 2]
jmp 0x4a4a30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a4a30
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0xac]
call fcn.00401c70
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.004e8c89
add esp, 0x20c
ret
Function at 0x4a5640
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004e9ba0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.004a3960
test al, al
jne 0x4a56c8
push 0x104
lea eax, [esp + 0xc]
push eax
mov ecx, ebx
call fcn.004a3900
test al, al
jne 0x4a56c8
push 0
push 0x1a
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a56b3
sub eax, edx
sar eax, 1
je 0x4a5762
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a56d0
mov edx, dword [0x601624]
mov dword [edi], edx
lea edi, [esp + 0xc]
add edi, 0xfffffffe
jmp 0x4a56f0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a56f0
push esi
mov ecx, 7
mov esi, 0x5fea14
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
pop esi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5713
mov dword [edi], edx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x4a573e
lea eax, [esp + 8]
push eax
call fcn.004a6000
add esp, 4
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5745
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [ebx + 0x3c]
call fcn.00401c70
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
call fcn.004e8c89
add esp, 0x210
ret
Function at 0x4a5780
Capabilities:
Check if file exists
Get common file path

Disassembly:
sub esp, 0x210
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
xor eax, eax
push 0x206
mov ebx, ecx
push eax
lea ecx, [esp + 0x12]
push ecx
mov word [esp + 0x14], ax
call fcn.004e9ba0
add esp, 0xc
push 0x104
lea edx, [esp + 0xc]
push edx
mov ecx, ebx
call fcn.004a3960
test al, al
jne 0x4a5808
push 0x104
lea eax, [esp + 0xc]
push eax
mov ecx, ebx
call fcn.004a3900
test al, al
jne 0x4a5808
push 0
push 0x1a
lea ecx, [esp + 0x10]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a57f3
sub eax, edx
sar eax, 1
je 0x4a58a2
push edi
lea edi, [esp + 0xc]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5810
mov edx, dword [0x601624]
mov dword [edi], edx
lea edi, [esp + 0xc]
add edi, 0xfffffffe
jmp 0x4a5830
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5830
push esi
mov ecx, 0xa
mov esi, str.PeopleCalendar.users
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea edi, [esp + 0x10]
add edi, 0xfffffffe
pop esi
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a5853
mov dword [edi], edx
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
pop edi
test eax, eax
jne 0x4a587e
lea eax, [esp + 8]
push eax
call fcn.004a6000
add esp, 4
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a5885
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xc]
push ecx
lea ecx, [ebx + 0x20]
call fcn.00401c70
mov ecx, dword [esp + 0x210]
pop ebx
xor ecx, esp
call fcn.004e8c89
add esp, 0x210
ret
Function at 0x4a5fb0
Capabilities:
Find taskbar

Disassembly:
sub esp, 0x30
push esi
push edi
push 0
lea eax, [esp + 0xc]
push eax
push 0
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
lea ecx, [esp + 0x18]
push ecx
push eax
call edi
lea edx, [esp + 0x28]
push edx
push esi
call edi
mov eax, dword [esp + 0x10]
sub eax, dword [esp + 8]
pop edi
pop esi
add esp, 0x30
ret

Function at 0x4a6000
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4a6010
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004ca5e4
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a6045
xor edi, edi
mov byte [esp + 0x10], 1
test ebp, ebp
jl 0x4a60ad
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x4a608f
xor eax, eax
push esi
mov word [esi + edi*2], ax
call ebx
test eax, eax
jne 0x4a6086
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4a60a7
mov ecx, 0x5c
mov word [esi + edi*2], cx
inc edi
cmp edi, ebp
jle 0x4a6066
pop ebx
push esi
call fcn.004ca5d9
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret
mov byte [esp + 0x14], 0
pop ebx
push esi
call fcn.004ca5d9
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret
Function at 0x4a64c0
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query or enumerate registry value

Disassembly:
sub esp, 0x420
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x41c], eax
push ebp
mov ebp, dword [esp + 0x428]
lea eax, [esp + 4]
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionApp_PathsIEXPLORE.EXE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4a651c
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004e8c89
add esp, 0x420
ret
push ebx
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x226]
push edx
mov word [esp + 0x228], cx
call fcn.004e9ba0
add esp, 0xc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push 0x5fd0cc
push eax
mov dword [esp + 0x28], 0x104
mov dword [esp + 0x24], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea ecx, [esp + 0x21c]
push ecx
call ebx
test eax, eax
jne 0x4a6627
mov edx, dword [esp + 8]
push esi
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x26]
push ecx
mov word [esp + 0x28], ax
call fcn.004e9ba0
add esp, 0xc
push 0
push 0x26
lea edx, [esp + 0x24]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edi, [esp + 0x1c]
add edi, 0xfffffffe
jmp 0x4a65d0
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x4a65d0
lea eax, [esp + 0x1c]
mov ecx, 0x10
mov esi, str.Internet_Exploreriexplore.exe
push eax
rep movsd dword es:[edi], dword [esi]
call ebx
pop edi
pop esi
test eax, eax
jne 0x4a660c
pop ebx
pop ebp
mov ecx, dword [esp + 0x41c]
xor ecx, esp
call fcn.004e8c89
add esp, 0x420
ret
lea eax, [esp + 0x14]
mov edx, ebp
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a6616
jmp 0x4a664e
lea eax, [esp + 0x21c]
mov edx, ebp
mov ecx, eax
sub edx, ecx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x4a6634
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x424]
pop ebx
pop ebp
xor ecx, esp
mov eax, 1
call fcn.004e8c89
add esp, 0x420
ret
Function at 0x4a6670
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x220
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x21c], eax
push esi
push edi
xor edi, edi
push 0x206
lea ecx, [esp + 0x22]
xor eax, eax
push edi
push ecx
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], edi
mov word [esp + 0x28], ax
call fcn.004e9ba0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea edx, [esp + 0x10]
push edx
push 0x20019
push edi
push 0x614864
push closesocket
call esi
test eax, eax
je 0x4a66ec
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.004e8c89
add esp, 0x220
ret
mov ecx, dword [esp + 0x10]
lea eax, [esp + 8]
push eax
push 0x20019
push edi
push str.shell
push ecx
call esi
test eax, eax
jne 0x4a66d3
mov eax, dword [esp + 8]
lea edx, [esp + 0xc]
push edx
push 0x20019
push edi
push str.opencommand
push eax
call esi
test eax, eax
jne 0x4a66d3
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push edi
push 0x5fd0cc
push ecx
mov dword [esp + 0x2c], 0x104
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 8]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call esi
mov eax, dword [esp + 0xc]
push eax
call esi
lea ecx, [esp + 0x1c]
push ecx
call fcn.004ec8c9
push 0x60031c
push eax
call fcn.004e8767
add esp, 0xc
cmp eax, edi
je 0x4a66d3
lea esi, [eax + 2]
push 0x60031c
push esi
call fcn.004e8767
add esp, 8
cmp eax, edi
je 0x4a66d3
xor edx, edx
push esi
mov word [eax], dx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [esp + 0x224]
neg eax
pop edi
sbb eax, eax
pop esi
xor ecx, esp
neg eax
call fcn.004e8c89
add esp, 0x220
ret

Function at 0x4a67d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x704dd8]
xor eax, esp
mov dword [esp + 0x824], eax
push esi
mov esi, dword [esp + 0x830]
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.004e9ba0
xor eax, eax
push esi
lea ecx, [esp + 0x68]
push 0x6012d8
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00403b80
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4a6862
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x828]
pop esi
xor ecx, esp
call fcn.004e8c89
add esp, 0x828
ret