joyce8/EMBER2024-capa huggingface dataset:
Function at 0x511f18
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x18
push ebx
xor ebx, ebx
push edi
mov edi, ebx
cmp dword [eax + 0x10], ebx
je 0x512029
push esi
mov esi, dword [ebp + 0xc]
cmp dword [esi + 0x10], ebx
je 0x512028
cmp dword [esi + 0x14], 0x10
mov eax, esi
jb 0x511f47
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
test eax, eax
je 0x512028
push 0x6c43e1
push eax
call fcn.0046966c
mov dword [ebp - 4], eax
pop ecx
pop ecx
test eax, eax
je 0x512028
cmp dword [esi + 0x14], 0x10
jb 0x511f7c
mov esi, dword [esi]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
push esi
call sub.VERSION.dll_GetFileVersionInfoA
mov esi, dword [ebp - 4]
test eax, eax
je 0x512016
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x512016
mov eax, dword [ebp - 0x10]
push 0x6c43e1
push 0x80
movzx ecx, word [eax]
movzx eax, word [eax + 2]
shl ecx, 0x10
or ecx, eax
mov dword [ebp - 8], ecx
call fcn.0046966c
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x512016
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x511fdf
mov eax, dword [eax]
push eax
push dword [ebp - 8]
push str.StringFileInfo_08lx_s
push 0x80
push edi
call fcn.00410ac0
add esp, 0x14
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push edi
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x512014
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.0040f930
mov bl, 1
push esi
call fcn.00468fb9
pop ecx
test edi, edi
je 0x512028
push edi
call fcn.00468fb9
pop ecx
pop esi
pop edi
mov al, bl
pop ebx
leave
ret
Function at 0x512047
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push 0x2b4
mov eax, 0x6bf975
call fcn.0057109f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push esi
call fcn.004033d0
mov ecx, dword [ebp - 0x30]
xor ebx, ebx
mov dword [ebp - 4], ebx
test ecx, ecx
je 0x5121d7
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x5c
je 0x5120a5
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
cmp word [eax + ecx*2 - 2], 0x2f
je 0x5120a5
push 0x741a3c
lea ecx, [ebp - 0x40]
call fcn.00403320
lea eax, [ebp - 0x40]
mov dword [ebp - 0x60], ebx
push eax
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x5c], ebx
call fcn.00402f60
push 0x6d33d4
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00403320
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x2c0]
lea eax, [ebp - 0x70]
cmovae eax, dword [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x5121cf
xor eax, eax
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp - 0x294]
mov dword [ebp - 0x14], 7
push eax
call fcn.00402590
push 0x741a44
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402e50
test al, al
jne 0x512191
push 0x744964
lea ecx, [ebp - 0x28]
call fcn.00402e50
test al, al
jne 0x512191
lea eax, [ebp - 0x40]
mov dword [ebp - 0x48], ebx
push eax
lea ecx, [ebp - 0x58]
mov dword [ebp - 0x44], ebx
call fcn.00402f60
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x58]
push eax
mov byte [ebp - 4], 3
call fcn.004032b0
test byte [ebp - 0x2c0], 0x10
lea eax, [ebp - 0x58]
je 0x51217a
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.00512047
jmp 0x512188
cmp dword [ebp - 0x44], 8
cmovae eax, dword [ebp - 0x58]
push eax
call fcn.0051202f
pop ecx
lea ecx, [ebp - 0x58]
call fcn.00402630
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402630
lea eax, [ebp - 0x2c0]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5120ec
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x5121cf
push 4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
lea ecx, [ebp - 0x70]
call fcn.00402630
lea ecx, [ebp - 0x40]
call fcn.00402630
call fcn.00571049
ret
Function at 0x5122ae
Capabilities:
Check if file exists

Disassembly:
push 0x234
mov eax, 0x6bf9a8
call fcn.0057109f
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
push ebx
push 0x1a
push eax
push ebx
call fcn.0051276d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x5122de
sub ecx, edx
sar ecx, 1
je 0x512379
push 0x741a3c
mov ebx, 0x104
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0054c698
push edi
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0054c698
push 0x741a3c
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.0054c698
add esp, 0x24
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51236b
and dword [ebp - 0x21c], eax
and dword [ebp - 4], eax
lea eax, [ebp - 0x240]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0050a11e
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
lea ecx, [ebp - 0x240]
call fcn.00426820
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00402590
call fcn.00571049
ret 8
Function at 0x5123a2
Capabilities:
Check if file exists

Disassembly:
push 0xc7c
mov eax, 0x6bf9e6
call fcn.0057109f
mov esi, ecx
mov dword [ebp - 0xc88], esi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xc40]
mov ebx, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0xc84], edi
call fcn.00530310
push 0x208
lea eax, [ebp - 0x830]
push 0
push eax
call fcn.00530310
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.00530310
push 0x208
lea eax, [ebp - 0xa38]
push 0
push eax
call fcn.00530310
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00530310
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.00530310
xor ecx, ecx
mov dword [ebp - 0xc44], 7
xor eax, eax
mov dword [ebp - 0xc48], ecx
add esp, 0x48
mov word [ebp - 0xc58], ax
push ecx
push 0x1a
lea eax, [ebp - 0xc40]
mov dword [ebp - 4], ecx
push eax
push ecx
mov ecx, esi
call fcn.0051276d
lea eax, [ebp - 0xc40]
push eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.00549568
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0052fcca
add esp, 0x14
test eax, eax
jne 0x51249e
mov ecx, esi
jmp 0x51260d
xor ecx, ecx
mov esi, 0x104
mov word [eax], cx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.00549568
push str.Local
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.0054c698
add esp, 0x18
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
xor esi, esi
inc ecx
test eax, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x420]
cmovne esi, ecx
push 0x104
push eax
call fcn.00549568
push str.LocalLow
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0054c698
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push 1
xor ecx, ecx
test eax, eax
pop eax
cmovne ecx, eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xa38]
mov dword [ebp - 0xc84], ecx
push 0x104
push eax
call fcn.00549568
push str.Roaming
lea eax, [ebp - 0xa38]
push 0x104
push eax
call fcn.0054c698
add esp, 0x18
lea eax, [ebp - 0xa38]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ecx, ecx
test eax, eax
push 1
pop eax
cmovne ecx, eax
test esi, esi
je 0x512607
cmp dword [ebp - 0xc84], 0
je 0x512607
test ecx, ecx
je 0x512607
push ebx
lea eax, [ebp - 0x420]
push eax
push 0x6d3ab0
lea eax, [ebp - 0x628]
push 0x104
push eax
call fcn.00428940
add esp, 0x14
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x5125f3
and dword [ebp - 0xc5c], eax
inc eax
mov byte [ebp - 4], al
lea eax, [ebp - 0xc80]
push eax
lea eax, [ebp - 0x628]
push eax
call fcn.0050a11e
pop ecx
pop ecx
lea ecx, [ebp - 0xc80]
mov byte [ebp - 4], 0
call fcn.00426820
lea eax, [ebp - 0x628]
push eax
lea ecx, [ebp - 0xc58]
call fcn.00402590
jmp 0x51261a
mov ecx, dword [ebp - 0xc88]
push ebx
lea eax, [ebp - 0xc58]
push eax
call fcn.005122ae
lea eax, [ebp - 0xc58]
mov ecx, edi
push eax
call fcn.00403350
lea ecx, [ebp - 0xc58]
call fcn.00402630
mov eax, edi
call fcn.00571049
ret 8
Function at 0x512e82
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push 0x430
mov eax, 0x6bfafa
call fcn.0057109f
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.00403320
push ebx
lea ecx, [ebp - 0x428]
call fcn.00403320
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 0x512f9c
push 0x400
lea eax, [ebp - 0x410]
push esi
push eax
call fcn.00530310
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 0x512f83
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x512f94
push dword [ebp - 0x42c]
call edi
test esi, esi
jne 0x513086
and dword [ebp - 0x418], 0
lea eax, [ebp - 0x428]
cmp dword [ebp - 0x414], 8
push 0x6d3b80
cmovae eax, dword [ebp - 0x428]
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x428]
call fcn.00403320
push dword [ebp - 0x430]
lea ecx, [ebp - 0x428]
call fcn.00403320
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 0x513086
push 0x400
push eax
lea eax, [ebp - 0x410]
push eax
call fcn.00530310
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 0x513075
lea eax, [ebp - 0x410]
push eax
call ebx
test eax, eax
push 1
pop eax
cmovne esi, eax
cmp dword [ebp - 0x42c], 0
je 0x513086
push dword [ebp - 0x42c]
call edi
lea ecx, [ebp - 0x428]
call fcn.00402630
mov eax, esi
call fcn.00571049
ret
Function at 0x51351c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x76a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
test ebx, ebx
je 0x5135af
push 0x228
xor esi, esi
mov dword [ebp - 0x230], 0x22c
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.00530310
add esp, 0xc
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0x5135af
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x513598
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0050ba9c
pop ecx
pop ecx
test al, al
jne 0x51359e
lea eax, [ebp - 0x230]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x513578
jmp 0x5135a4
mov esi, dword [ebp - 0x228]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x5135b1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468d3e
leave
ret

Function at 0x514d6c
Capabilities:
Accept command line arguments

Disassembly:
push 0x24
mov eax, 0x6bfdd0
call fcn.0057109f
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
call fcn.00516fd1
and dword [ebp - 4], 0
test esi, esi
je 0x514d94
push esi
jmp 0x514d9b
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
lea ecx, [ebp - 0x30]
call fcn.005175ae
lea ecx, [ebp - 0x30]
call fcn.00406270
cmp eax, 1
jne 0x514db7
call fcn.00514c88
jmp 0x514df6
push str._1382463573
lea ecx, [ebp - 0x30]
call fcn.00517881
test al, al
jne 0x514dd4
lea eax, [ebp - 0x30]
push eax
call fcn.00514cca
pop ecx
jmp 0x514df6
test ebx, ebx
mov eax, 0x6d3ef8
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.00514b7c
add esp, 0xc
lea ecx, [ebp - 0x30]
call fcn.00516fff
call fcn.00571049
ret
Function at 0x51504c
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x76a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x51507b
push 2
pop eax
jmp 0x51510d
push 0x6d3ef8
push str.YkNeF8pGJvCom4Qj
lea eax, [ebp - 0x1c]
push edi
push eax
call fcn.00514e25
push 0x3c
pop edi
push edi
lea eax, [ebp - 0x58]
push 0
push eax
call fcn.00530310
add esp, 0x1c
mov dword [ebp - 0x58], edi
test ebx, ebx
mov dword [ebp - 0x48], esi
mov ecx, str.open
mov dword [ebp - 0x54], 0x40
mov eax, str.runas
mov dword [ebp - 0x3c], 5
cmove eax, ecx
cmp dword [ebp - 8], 8
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
and dword [ebp - 0x40], 0
mov dword [ebp - 0x44], eax
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 0x20], 0
mov esi, eax
je 0x515103
cmp dword [ebp + 0x10], 0
je 0x515103
push dword [ebp + 0x14]
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x1c]
call fcn.00402630
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468d3e
leave
ret

Function at 0x5153b9
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x3c
mov eax, 0x6bfef9
call fcn.0057109f
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x48], eax
test eax, eax
jne 0x5153dc
xor al, al
jmp 0x51549c
lea edi, [ecx + 4]
cmp dword [edi + 0x10], 0
ja 0x5153ff
lea eax, [ebp - 0x40]
push eax
call fcn.0050a656
pop ecx
push eax
mov ecx, edi
call fcn.00403100
lea ecx, [ebp - 0x40]
call fcn.00402630
and dword [ebp - 0x18], 0
lea ecx, [ebp - 0x28]
and dword [ebp - 0x14], 0
push edi
call fcn.00402f60
xor edi, edi
lea ecx, [ebp - 0x28]
push 0x6d3ff0
mov dword [ebp - 4], edi
call fcn.00403320
push dword [ebp - 0x48]
lea ecx, [ebp - 0x28]
call fcn.00403320
test ebx, ebx
je 0x515447
push 0x741a3c
lea ecx, [ebp - 0x28]
call fcn.00403320
push ebx
lea ecx, [ebp - 0x28]
call fcn.00403320
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x44]
push ecx
push 0xf003f
lea eax, [ebp - 0x28]
mov dword [ebp - 0x44], edi
cmovae eax, dword [ebp - 0x28]
push edi
push eax
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x515492
test esi, esi
je 0x51547f
push esi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
jmp 0x515489
push edi
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push dword [ebp - 0x44]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x28]
call fcn.00402630
mov al, 1
call fcn.00571049
ret 0xc
Function at 0x515778
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x76a02c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
cmp dword [esi + 0x14], ebx
ja 0x5157d0
lea eax, [ebp - 0x1c]
push eax
call fcn.0050a656
pop ecx
lea ecx, [esi + 4]
push eax
call fcn.00403100
lea ecx, [ebp - 0x1c]
call fcn.00402630
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x5157db
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea ecx, [ebp - 0x20]
push ecx
push 0xf013f
push ebx
push eax
push reloc.WS2_32.dll_closesocket
call esi
test eax, eax
je 0x5157fe
xor al, al
jmp 0x5158b7
lea eax, [ebp - 0x24]
push eax
push 0xf013f
push ebx
push 0x6d3fd4
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x515821
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x5157f7
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [ebp - 0x2c]
push ebx
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x30]
push dword [ebp - 0x24]
call esi
test eax, eax
je 0x515853
push dword [ebp - 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x20]
call esi
jmp 0x5157f7
push ebx
lea eax, [ebp - 0x28]
push eax
push ebx
push 0xf013f
push ebx
push ebx
push ebx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x5158a6
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x515878
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push ebx
push dword [ebp - 0x38]
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x28]
call esi
mov bl, 1
push dword [ebp - 0x2c]
call esi
push dword [ebp - 0x24]
call esi
push dword [ebp - 0x20]
call esi
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468d3e
leave
ret 0x10
Function at 0x51598c
Capabilities:
Create process on windows
Get common file path
Get program files directory

Disassembly:
push 0x210
mov eax, 0x6bff5e
call fcn.0057109f
mov esi, dword [ebp + 8]
push 1
push 0
push esi
push 0x6d403c
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ebx, ebx
cmp eax, 0x20
setg bl
jle 0x515908
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x483
jne 0x515984
push 0x208
xor ebx, ebx
lea eax, [ebp - 0x218]
push ebx
push eax
call fcn.00530310
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x26
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.004224e0
push eax
lea ecx, [ebp - 0x21c]
call fcn.004222c0
lea eax, [ebp - 0x218]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x21c]
push str.__sInternet_Exploreriexplore.exe_
push eax
call fcn.0041f510
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.004225d0
mov eax, ebx
call fcn.00571049
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 0x5159af
pop ebp
jmp 0x5158c8
pop ebp
ret

Function at 0x51637e
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x516390
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x5163d5
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x516449
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x516452
pop esi
ret
Function at 0x51648a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x5164a1
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8
Function at 0x5167d6
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x3100
call fcn.00571300
mov eax, dword [0x76a02c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov esi, 0x104
lea eax, [ebp - 0x108]
push esi
xor ebx, ebx
mov edi, ecx
push ebx
push eax
mov dword [ebp - 0x3100], edi
call fcn.00530310
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.00530310
add esp, 0x18
lea eax, [ebp - 0x108]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
movsx eax, byte [ebp - 0x108]
push eax
push str.._c:
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.00410ac0
add esp, 0x10
lea eax, [ebp - 0x20c]
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x51686c
mov al, 1
jmp 0x516975
push 0x2710
lea eax, [ebp - 0x30ec]
mov dword [ebp - 0x30fc], ebx
push ebx
push eax
call fcn.00530310
push 0x3e8
lea eax, [ebp - 0x9dc]
push ebx
push eax
call fcn.00530310
push 0x3e8
lea eax, [ebp - 0x5f4]
push ebx
push eax
call fcn.00530310
add esp, 0x24
mov dword [ebp - 0x30f0], ebx
lea eax, [ebp - 0x30fc]
mov dword [ebp - 0x30f8], ebx
mov dword [ebp - 0x30f4], ebx
push ebx
push eax
push 0x2710
lea eax, [ebp - 0x30ec]
push eax
push 0xc
lea eax, [ebp - 0x30f8]
push eax
push 0x2d1400
push esi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x5168ee
mov bl, 2
jmp 0x51696c
lea eax, [ebp - 0x5f4]
push eax
push ebx
push dword [ebp - 0x30dc]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00516984
lea eax, [ebp - 0x9dc]
push eax
push 1
push dword [ebp - 0x30d4]
lea eax, [ebp - 0x30ec]
push eax
call fcn.00516984
lea ecx, [ebp - 0x5f4]
add esp, 0x20
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51692f
sub ecx, edx
lea eax, [ebp - 0x5f4]
push ecx
push eax
mov ecx, edi
call fcn.0050ce78
lea edx, [ebp - 0x9dc]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x516950
mov ecx, dword [ebp - 0x3100]
lea eax, [ebp - 0x9dc]
sub edx, edi
push edx
push eax
call fcn.0050ce78
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00468d3e
leave
ret