joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4eb34b
Capabilities:
Create service
Modify service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4eb3bb
push ebx
push esi
push esi
push 0x692be4
push esi
push esi
push dword [ebp + 0x10]
push 1
push 2
push 0x110
push 0xf01ff
push dword [ebp + 8]
push dword [ebp + 8]
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
je 0x4eb3b1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 1
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor esi, esi
inc esi
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, esi
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x4eb3c1
Capabilities:
Delete service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
xor eax, eax
push edi
push 7
pop ecx
push 0xf003f
push eax
lea edi, [ebp - 0x20]
rep stosd dword es:[edi], eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x4eb434
push 0x10020
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0x4eb424
lea eax, [ebp - 0x20]
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x4eb424
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call edi
test esi, esi
je 0x4eb434
push esi
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
inc eax
pop esi
call fcn.00447f77
leave
ret 4
Function at 0x4eb447
Capabilities:
Check for time delay via gettickcount
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
mov dword [ebp - 0x3c], edi
test edi, edi
jne 0x4eb47b
xor eax, eax
jmp 0x4eb5f9
push 0xf01ff
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x4eb497
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x4eb474
push ebx
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4eb5e8
cmp dword [ebp - 0x24], 1
je 0x4eb4c3
cmp dword [ebp - 0x24], 3
jne 0x4eb5e8
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0xa
jmp 0x4eb53d
mov eax, dword [ebp - 0x10]
xor edx, edx
div dword [ebp - 0x34]
cmp eax, 0x3e8
jae 0x4eb4f3
mov eax, 0x3e8
jmp 0x4eb4f8
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4eb5e8
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x14], eax
jbe 0x4eb52f
call ebx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
jmp 0x4eb53d
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
ja 0x4eb5e8
cmp dword [ebp - 0x24], 3
mov ecx, 0x2710
je 0x4eb4dd
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x4eb5e8
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4eb5e8
call ebx
cmp dword [ebp - 0x24], 2
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jne 0x4eb5e3
mov edi, ecx
mov eax, dword [ebp - 0x10]
xor edx, edx
push 0xa
pop ecx
div ecx
mov ecx, 0x3e8
cmp eax, ecx
jae 0x4eb599
mov eax, ecx
jmp 0x4eb5a3
mov ecx, 0x2710
cmp eax, ecx
cmova eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x30]
push eax
push 0x24
lea eax, [ebp - 0x28]
push eax
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x4eb5e0
cmp dword [ebp - 0x14], edi
jbe 0x4eb5d0
call ebx
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x2c], eax
jmp 0x4eb5da
call ebx
sub eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x10]
ja 0x4eb5e0
cmp dword [ebp - 0x24], 2
je 0x4eb582
mov edi, dword [ebp - 0x3c]
xor ebx, ebx
inc ebx
jmp 0x4eb5ea
xor ebx, ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00447f77
leave
ret 4
Function at 0x4ecdb7
Capabilities:
Check if file exists

Disassembly:
push 0x23c
mov eax, 0x68f190
call fcn.004490d5
mov edi, ecx
lea eax, [ebp - 0x230]
push eax
call fcn.004ecac1
and dword [ebp - 4], 0
lea esi, [edi + 4]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ecde9
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x6aa5e8
call fcn.00402d70
push 0x697ab0
mov ecx, esi
call fcn.00402d70
push 0x693250
mov ecx, esi
call fcn.00402d70
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00402da0
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x4ece3e
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4eced6
push 0x208
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.00517830
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004ec927
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ece95
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call fcn.00402d70
push 0x693250
mov ecx, esi
call fcn.00402d70
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x220]
cmovae eax, dword [ebp - 0x230]
mov ecx, esi
push eax
call fcn.00402da0
cmp dword [esi + 0x14], 8
jb 0x4ecede
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [edi + 0x1c]
and dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x4ecef6
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov ecx, esi
push 0x6aa5e8
call fcn.00402d70
push 0x697ab0
mov ecx, esi
call fcn.00402d70
push 0x693250
mov ecx, esi
call fcn.00402d70
lea eax, [ebp - 0x248]
mov ecx, edi
push eax
call fcn.004ecb20
push eax
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.0043c3b0
lea ecx, [ebp - 0x248]
call fcn.00401e90
lea ecx, [ebp - 0x230]
call fcn.00401e90
call fcn.00449090
ret
Function at 0x4ee1c6
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x68f381
call fcn.004490d5
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4ee1e7
push dword [esi + 0x1c]
call fcn.00531989
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004ed666
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00530a49
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4ee26b
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004ed666
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004ed666
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00401e90
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401e90
sub edi, 1
jns 0x4ee215
mov ecx, esi
call fcn.004ee0a5
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00401e90
call fcn.00449090
ret

Function at 0x4ee284
Capabilities:
Move file

Disassembly:
push 0x4c
mov eax, 0x68f381
call fcn.004490d5
mov esi, ecx
cmp dword [esi + 0x1c], 0xffffffff
je 0x4ee2a5
push dword [esi + 0x1c]
call fcn.00531989
or dword [esi + 0x1c], 0xffffffff
pop ecx
mov eax, dword [esi + 0x28]
mov ecx, esi
dec eax
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.004ed666
and dword [ebp - 4], 0
lea eax, [ebp - 0x58]
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00530a49
mov edi, dword [esi + 0x28]
sub edi, 2
pop ecx
js 0x4ee329
push edi
lea eax, [ebp - 0x40]
mov ecx, esi
push eax
call fcn.004ed666
lea eax, [edi + 1]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004ed666
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x28]
cmp dword [ebp - 0x2c], 8
push ecx
cmovae eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
lea ecx, [ebp - 0x28]
call fcn.00401e90
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00401e90
sub edi, 1
jns 0x4ee2d3
mov ecx, esi
call fcn.004ee13c
lea ecx, [ebp - 0x58]
mov byte [esi + 0x5c], 0
call fcn.00401e90
call fcn.00449090
ret
Function at 0x4ee776
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x68f409
call fcn.004490d5
mov ebx, dword [ebp + 8]
xor ecx, ecx
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0x430], ebx
mov esi, ecx
mov dword [ebp - 0x434], edi
mov dword [ebp - 0x42c], ecx
mov dword [ebp - 0x418], ecx
mov dword [ebp - 0x414], 7
mov word [ebp - 0x428], ax
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x428]
push str.SOFTWAREWow6432NodeMicrosoftWindowsCurrentVersionUninstall_
call fcn.00402d70
push ebx
lea ecx, [ebp - 0x428]
call fcn.00402d70
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push esi
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x4ee890
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00517830
add esp, 0xc
mov dword [ebp - 0x438], 0x200
lea eax, [ebp - 0x438]
mov dword [ebp - 0x43c], 1
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x43c]
push eax
push esi
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ee877
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x4ee888
push dword [ebp - 0x42c]
call edi
test esi, esi
jne 0x4ee97a
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 8
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
cmovae eax, dword [ebp - 0x428]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x428]
call fcn.00402d70
push dword [ebp - 0x430]
lea ecx, [ebp - 0x428]
call fcn.00402d70
cmp dword [ebp - 0x414], 8
lea ecx, [ebp - 0x42c]
push ecx
push 0x109
lea eax, [ebp - 0x428]
cmovae eax, dword [ebp - 0x428]
push 0
push eax
push dword [ebp - 0x434]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4ee97a
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00517830
add esp, 0xc
mov dword [ebp - 0x434], 0x200
xor eax, eax
inc eax
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x434]
push eax
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x430]
push eax
push 0
push str.UninstallString
push dword [ebp - 0x42c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4ee969
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x4ee97a
push dword [ebp - 0x42c]
call edi
lea ecx, [ebp - 0x428]
call fcn.00401e90
mov eax, esi
call fcn.00449090
ret
Function at 0x4eee10
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x4eeea3
push 0x228
xor esi, esi
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00517830
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x4eeea3
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4eee8c
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004e756f
pop ecx
pop ecx
test al, al
jne 0x4eee92
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4eee6c
jmp 0x4eee98
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4eeea5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00447f77
leave
ret

Function at 0x4ef0b5
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x224
mov eax, 0x68f50d
call fcn.004490d5
mov edi, dword [ebp + 8]
xor esi, esi
xor eax, eax
mov dword [ebp - 0x220], esi
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 4], esi
push esi
push eax
call fcn.00517830
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0xb
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4ef159
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402340
push 0x693250
lea ecx, [ebp - 0x230]
call fcn.00402d70
push edi
lea ecx, [ebp - 0x230]
call fcn.00402d70
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call fcn.004eb03a
pop ecx
inc esi
lea ecx, [ebp - 0x230]
call fcn.00401e90
mov eax, esi
call fcn.00449090
ret 4
Function at 0x4ef18a
Capabilities:
Get common file path
Get startup folder

Disassembly:
push 0x258
mov eax, 0x68f54b
call fcn.004490d5
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, dword [ebp + 0xc]
xor ecx, ecx
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x264], edi
mov dword [ebp - 0x220], ebx
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], cx
push eax
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], ebx
call fcn.004027c0
push 0x208
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 1
push ebx
push eax
call fcn.00517830
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push dword [ebp + 0x14]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x4ef212
push 0x692be4
mov ecx, edi
call fcn.004027c0
jmp 0x4ef2ea
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.00402340
mov eax, dword [ebp - 0x220]
lea ecx, [ebp - 0x230]
dec eax
push eax
call fcn.004e690f
cmp word [eax], 0x5c
je 0x4ef24d
push 0x693250
lea ecx, [ebp - 0x230]
call fcn.00402d70
push esi
lea ecx, [ebp - 0x230]
call fcn.00402d70
xor eax, eax
mov dword [ebp - 0x250], ebx
mov word [ebp - 0x260], ax
lea ecx, [ebp - 0x260]
mov eax, dword [ebp - 0x220]
sub eax, dword [ebp - 0x238]
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24c], 7
push eax
call fcn.004e68d1
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x260]
call fcn.00402460
lea ecx, [ebp - 0x260]
mov esi, eax
call fcn.00401e90
test esi, esi
je 0x4ef2dc
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
cmovae eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x230]
push eax
call fcn.00402da0
lea eax, [ebp - 0x230]
mov ecx, edi
push eax
call fcn.00402780
lea ecx, [ebp - 0x248]
call fcn.00401e90
lea ecx, [ebp - 0x230]
call fcn.00401e90
mov eax, edi
call fcn.00449090
ret 0x10

Function at 0x4ef30a
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x732694]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00517830
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x20c]
push str._s__u___s_
push eax
call fcn.004cead0
add esp, 0x18
lea eax, [ebp - 0x20c]
push esi
push esi
push eax
push str.regsvr32.exe
push esi
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
lea ecx, [ebp + 8]
call fcn.00401e90
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00447f77
leave
ret 0x18
Function at 0x4ef3dd
Capabilities:
Link many functions at runtime

Disassembly:
push esi
push edi
push str.kernel32.dll
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi], eax
test eax, eax
je 0x4ef462
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
push str.IsWow64Process
push dword [esi]
mov dword [esi + 8], eax
call edi
push str.Wow64DisableWow64FsRedirection
push dword [esi]
mov dword [esi + 0xc], eax
call edi
push str.Wow64RevertWow64FsRedirection
push dword [esi]
mov dword [esi + 0x18], eax
call edi
push str.GetSystemWow64DirectoryW
push dword [esi]
mov dword [esi + 0x14], eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 4], eax
test eax, eax
je 0x4ef462
push str.RegDisableReflectionKey
push eax
call edi
push str.RegEnableReflectionKey
push dword [esi + 4]
mov dword [esi + 0x20], eax
call edi
mov dword [esi + 0x1c], eax
xor eax, eax
inc eax
jmp 0x4ef464
xor eax, eax
pop edi
pop esi
ret

Function at 0x4f04eb
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push 0x210
mov eax, 0x68f674
call fcn.004490d5
mov esi, dword [ebp + 8]
push 1
push 0
push esi
push str.iexplore.exe
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
jle 0x4f044f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
jne 0x4f04cb
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00517830
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.004221d0
push eax
lea ecx, [ebp - 0x21c]
call fcn.004f03e6
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x21c]
push str.__sInternet_Exploreriexplore.exe_
push eax
call fcn.0041e170
add esp, 0xc
push 1
push ebx
push esi
mov esi, dword [ebp - 0x21c]
push esi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
lea ecx, [esi - 0x10]
setg bl
call fcn.004f04d3
mov eax, ebx
call fcn.00449090
ret
push ebp
mov ebp, esp
push 1
xor eax, eax
push eax
push eax
push dword [ebp + 8]
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
jg 0x4f050e
pop ebp
jmp 0x4f040f
pop ebp
ret
Function at 0x4f1350
Capabilities:
Encode data using base64

Disassembly:
push 0x10
mov eax, 0x68f89d
call fcn.004490a1
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov edi, ebx
mov eax, dword [ebp + 8]
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], 0xf
mov byte [eax], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1c], 1
cmp dword [ebp + 0x10], ebx
je 0x4f14db
mov eax, dword [ebp + 0x10]
push 3
pop esi
mov ecx, dword [ebp + 0xc]
dec eax
mov dword [ebp + 0x10], eax
mov al, byte [ecx]
mov byte [ebp + edi - 0x14], al
inc edi
mov dl, byte [ebp - 0x13]
inc ecx
mov dword [ebp + 0xc], ecx
mov ch, byte [ebp - 0x12]
mov cl, byte [ebp - 0x14]
mov byte [ebp - 0xf], ch
mov byte [ebp - 0xd], dl
mov byte [ebp - 0xe], cl
cmp edi, esi
jne 0x4f1421
mov esi, dword [ebp + 8]
mov al, cl
shr al, 2
and cl, 3
mov byte [ebp - 0x18], al
mov edi, ebx
shl cl, 4
mov al, dl
shr al, 4
add cl, al
mov al, ch
mov byte [ebp - 0x17], cl
mov cl, dl
and cl, 0xf
shr al, 6
shl cl, 2
add cl, al
mov al, ch
and al, 0x3f
mov byte [ebp - 0x16], cl
mov byte [ebp - 0x15], al
cmp dword [0x7329e0], 0x10
mov ecx, 0x7329cc
movzx eax, byte [ebp + edi - 0x18]
cmovae ecx, dword [0x7329cc]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.004472cf
inc edi
cmp edi, 4
jl 0x4f13e9
mov dl, byte [ebp - 0xd]
mov edi, ebx
mov cl, byte [ebp - 0xe]
mov ch, byte [ebp - 0xf]
push 3
pop esi
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4f138b
mov dword [ebp + 0x10], edi
test edi, edi
je 0x4f14d8
mov eax, edi
cmp edi, esi
jge 0x4f1457
cmp eax, esi
jae 0x4f14e1
mov byte [ebp + eax - 0x14], bl
inc eax
cmp eax, esi
jl 0x4f143f
mov ch, byte [ebp - 0x12]
mov dl, byte [ebp - 0x13]
mov cl, byte [ebp - 0x14]
mov al, cl
and cl, 3
shr al, 2
mov byte [ebp - 0x18], al
mov al, dl
shr al, 4
and dl, 0xf
shl cl, 4
add cl, al
shl dl, 2
mov al, ch
mov byte [ebp - 0x17], cl
shr al, 6
and ch, 0x3f
add dl, al
mov byte [ebp - 0x15], ch
lea eax, [edi + 1]
mov byte [ebp - 0x16], dl
mov dword [ebp - 0x14], eax
test eax, eax
jle 0x4f14c3
mov esi, dword [ebp + 8]
mov edi, eax
cmp dword [0x7329e0], 0x10
mov ecx, 0x7329cc
movzx eax, byte [ebp + ebx - 0x18]
cmovae ecx, dword [0x7329cc]
movzx eax, byte [eax + ecx]
mov ecx, esi
push eax
call fcn.004472cf
inc ebx
cmp ebx, edi
jl 0x4f1494
mov edi, dword [ebp + 0x10]
push 3
pop esi
cmp edi, esi
jge 0x4f14d8
sub esi, edi
mov ecx, dword [ebp + 8]
push 0x3d
call fcn.004472cf
sub esi, 1
jne 0x4f14c9
mov eax, dword [ebp + 8]
call fcn.0044907b
ret
call fcn.004487e1
int3
Function at 0x4f1798
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x68f8fd
call fcn.004490d5
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
call fcn.004f07bd
and dword [ebp - 4], 0
test esi, esi
je 0x4f17c0
push esi
jmp 0x4f17c7
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x30]
call fcn.004f0e07
lea ecx, [ebp - 0x30]
call fcn.004f0923
cmp eax, 1
jne 0x4f17e3
call fcn.004f16b4
jmp 0x4f1822
push str._1382463573
lea ecx, [ebp - 0x30]
call fcn.004f10da
test al, al
jne 0x4f1800
lea eax, [ebp - 0x30]
push eax
call fcn.004f16f6
pop ecx
jmp 0x4f1822
test ebx, ebx
mov eax, str.DGYg80dlVh2FoNE0
cmovne eax, ebx
test edi, edi
push eax
mov eax, str.YkNeF8pGJvCom4Qj
cmovne eax, edi
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004f15a8
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.004f07eb
call fcn.00449090
ret

Function at 0x4f1893
Capabilities:
Check mutex on windows

Disassembly:
push 0x1c
mov eax, 0x68f94d
call fcn.004490a1
mov esi, ecx
lea ecx, [ebp - 0x28]
call fcn.004f5c27
and dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.004f5c40
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0xc
call fcn.004f5c3c
push dword [ebp + 8]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0xb7
lea ecx, [ebp - 0x28]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 4], eax
call fcn.004f5c37
call fcn.0044907b
ret 4