joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45fb90
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598838
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, dword [ebp + 0xc]
mov dword [edi], eax
test eax, eax
jne 0x45fc52
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x45fc64
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp + 0xc], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
lea eax, [ebp + 0xc]
push str._s_d__x
push eax
call fcn.0042bf70
mov esi, dword [ebp + 0xc]
push esi
push ebx
call fcn.00555de4
add esp, 0x18
mov dword [edi], eax
test eax, eax
jne 0x45fc28
push 4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov dword [edi], eax
test eax, eax
jne 0x45fc33
jmp 0x45fc2e
mov dword [edi], 0
mov eax, dword [ebp + 0x10]
inc dword [eax]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x45fc52
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
int3

Function at 0x45ffb0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5988f8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0x2001f
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46007b
push dword [ebp + 0x10]
mov esi, dword [ebp - 0x10]
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ebx, ebx
test eax, eax
sete bl
test eax, eax
je 0x46005d
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Registry_delete_value_failed
push str.14_t_RegLog_t_ws:__x___ws___ws
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonapponlyonekregaux.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
add esp, 0x20
test esi, esi
je 0x460068
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x460090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598941
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 1
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4601fa
mov eax, dword [ecx]
call dword [eax + 0xc]
mov esi, dword [ebp + 8]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x1c], 1
test eax, eax
je 0x4600fd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], 0
test eax, eax
je 0x4601dd
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
push dword [ebp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov eax, dword [ebp - 0x18]
cmp eax, 1
je 0x46014d
cmp eax, 2
jne 0x4601cf
mov ecx, esi
call fcn.00429490
mov edx, dword [ebp - 0x14]
shr edx, 1
add edx, 1
js 0x4601f0
mov eax, dword [esi]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, edx
or ecx, eax
jge 0x46017d
push edx
mov ecx, esi
call fcn.004296d0
mov ebx, dword [esi]
lea eax, [ebp - 0x14]
push eax
push ebx
lea eax, [ebp - 0x18]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4601cf
mov eax, dword [ebp - 0x14]
xor ecx, ecx
shr eax, 1
mov word [ebx + eax*2], cx
mov eax, dword [esi]
test eax, eax
je 0x4601bd
push dword [eax - 8]
push eax
call fcn.00555593
mov ecx, eax
add esp, 8
test ecx, ecx
js 0x4601f0
mov eax, dword [esi]
cmp ecx, dword [eax - 8]
jg 0x4601f0
mov dword [eax - 0xc], ecx
xor edx, edx
mov eax, dword [esi]
mov word [eax + ecx*2], dx
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4601dd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.004293d0
push 0x80004005
call fcn.004293d0
int3
Function at 0x460320
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598998
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
test eax, eax
jne 0x4603ce
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4603a6
push 4
lea edx, [ebp - 0x14]
push edx
push 4
push esi
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4603a3
lea esi, [eax + 1]
jmp 0x4603ce
mov ecx, dword [ebp + 0x10]
push ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Registry_write_failed
push str.14_t_RegLog_t_ws:__x___ws___ws
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonapponlyonekregaux.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
add esp, 0x20
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4603dc
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4603f0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598998
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
xor esi, esi
test eax, eax
jne 0x4604bc
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x460492
mov edx, dword [ebp + 0x14]
lea ecx, [edx + 2]
mov dword [ebp - 0x14], ecx
lea esp, [esp]
mov cx, word [edx]
add edx, 2
test cx, cx
jne 0x460460
sub edx, dword [ebp - 0x14]
sar edx, 1
lea ecx, [edx*2 + 2]
push ecx
push dword [ebp + 0x14]
push 1
push 0
push dword [ebp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x460492
lea esi, [eax + 1]
jmp 0x4604bc
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Registry_write_failed
push str.14_t_RegLog_t_ws:__x___ws___ws
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonapponlyonekregaux.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
add esp, 0x20
mov ecx, dword [ebp - 0x10]
test ecx, ecx
je 0x4604ca
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4604e0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x218], esi
call fcn.0054b380
add esp, 0xc
test edi, edi
je 0x4605f5
cmp word [edi], 0
je 0x4605f5
lea eax, [ebp - 0x210]
push eax
push 0x10008
push 0
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4605fa
jmp 0x460550
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
cmp esi, 0x103
je 0x4605c7
test esi, esi
jne 0x4605d6
push ebx
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call fcn.004604e0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x460550
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
push edi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
mov eax, 0x3f2
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
Function at 0x460610
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x638
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x20a
mov dword [ebp - 0x638], eax
lea eax, [ebp - 0x41c]
push 0
push eax
call fcn.0054b380
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.0054b380
push 0x20a
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.0054b380
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x630]
add esp, 0x24
mov dword [ebp - 0x634], 0x104
push eax
push 1
push ebx
push ebx
push 0x80000003
call edi
test eax, eax
je 0x4606ae
lea eax, [ebp - 0x630]
push eax
push 1
push ebx
push ebx
push 0x80000003
call edi
test eax, eax
jne 0x460813
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x634]
push eax
lea eax, [ebp - 0x628]
push eax
push 0
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x460807
lea ebx, [ebx]
lea eax, [ebp - 0x628]
inc ebx
push eax
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00559d1c
push 0x5ad728
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00559ca7
push dword [ebp - 0x638]
lea eax, [ebp - 0x210]
push 0x105
push eax
call fcn.00559ca7
add esp, 0x24
lea eax, [ebp - 0x62c]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x210]
push eax
push 0x80000003
call edi
test eax, eax
je 0x460769
lea eax, [ebp - 0x62c]
push eax
push 0xf003f
push 0
lea eax, [ebp - 0x210]
push eax
push 0x80000003
call edi
test eax, eax
jne 0x4607d2
mov eax, dword [esi + 4]
sub eax, 0
je 0x4607b0
sub eax, 1
jne 0x4607c6
mov eax, dword [esi]
test eax, eax
js 0x4607c6
cmp eax, 1
jle 0x46079b
cmp eax, 2
jne 0x4607c6
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x62c]
call fcn.00461340
jmp 0x4607c3
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x62c]
call fcn.00460ce0
jmp 0x4607c3
push esi
lea eax, [ebp - 0x41c]
push eax
push dword [ebp - 0x62c]
call fcn.004604e0
add esp, 0xc
push dword [ebp - 0x62c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x634]
mov dword [ebp - 0x634], 0x104
push eax
lea eax, [ebp - 0x628]
push eax
push ebx
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4606e0
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
Function at 0x461ef0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598b61
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 0
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4620a0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
mov dword [ebp - 4], 0
push 0x5b11f0
push eax
call fcn.0042bf70
add esp, 0xc
mov byte [ebp - 4], 1
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4620aa
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], 1
push 0x2000
mov dword [ebp + 0x10], eax
mov ebx, 0x1000
call fcn.00546052
push 0x2000
mov esi, eax
push 0
push esi
call fcn.0054b380
mov eax, dword [ebp + 0xc]
add esp, 0x10
push dword [edi]
mov edi, dword [ebp - 0x10]
push ebx
push esi
push edi
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xffe
jne 0x462014
mov edi, edi
push esi
call fcn.0054605b
add ebx, 0x1000
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00546052
mov esi, eax
lea eax, [ebx + ebx]
push eax
push 0
push esi
call fcn.0054b380
mov eax, dword [ebp - 0x18]
add esp, 0x14
push dword [eax]
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
push dword [eax]
mov eax, dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebx - 2]
cmp eax, ecx
je 0x461fc0
test esi, esi
jne 0x46201c
xor ecx, ecx
jmp 0x462030
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x462021
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp + 0x10]
call fcn.00429870
push 2
push esi
call fcn.00546044
mov esi, dword [ebp + 0x10]
push esi
call fcn.0055b3de
lea edx, [esi - 0x10]
mov byte [ebp - 4], 0
or esi, 0xffffffff
add esp, 0xc
mov ebx, eax
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x46206e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x46208a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
int3
Function at 0x4620c0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596bc9
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4621fe
mov eax, dword [ecx]
call dword [eax + 0xc]
mov ecx, dword [ebp + 8]
add eax, 0x10
mov dword [ecx], eax
push 0x2000
mov dword [ebp - 4], 0
mov edi, 0x1000
mov dword [ebp - 0x10], 1
call fcn.00546052
push 0x2000
mov esi, eax
push 0
push esi
call fcn.0054b380
mov eax, dword [ebp + 0x14]
add esp, 0x10
push dword [ebx]
push edi
push esi
push dword [eax]
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
cmp eax, 0xffe
jne 0x4621b6
push esi
call fcn.0054605b
add edi, 0x1000
xor ecx, ecx
mov eax, edi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00546052
mov esi, eax
lea eax, [edi + edi]
push eax
push 0
push esi
call fcn.0054b380
mov eax, dword [ebp + 0x14]
add esp, 0x14
push dword [ebx]
push edi
push esi
push dword [eax]
mov eax, dword [ebp + 0x10]
push dword [eax]
mov eax, dword [ebp + 0xc]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [edi - 2]
cmp eax, ecx
je 0x462161
test esi, esi
jne 0x4621be
xor eax, eax
jmp 0x4621d2
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4621c3
sub eax, edx
sar eax, 1
mov ecx, dword [ebp + 8]
push eax
push esi
call fcn.00429870
push 2
push esi
call fcn.00546044
mov eax, dword [ebp + 8]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004293d0
int3
Function at 0x465f60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599002
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x62819c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x24c], 0
mov eax, dword [esi]
test eax, eax
jne 0x4660f3
push 0x208
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x220], eax
mov word [ebp - 0x230], ax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x24c], 1
call fcn.0054b380
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryW]
test eax, eax
je 0x46600d
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ebx, [ebx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466000
jmp 0x46605b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x466072
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0054b380
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x466072
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x466050
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.0042daa0
push str._version.dll
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.0043de00
mov edx, dword [ebp - 0x21c]
add esp, 0xc
cmp edx, 8
jb 0x4660c9
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4660bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46610d
push edx
push ecx
call fcn.00546044
add esp, 8
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
cmovae eax, dword [ebp - 0x248]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea ecx, [ebp - 0x248]
mov dword [esi], eax
call fcn.0042a1f0
mov eax, dword [esi]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00545ec7
mov esp, ebp
pop ebp
ret
call fcn.00555394
int3
Function at 0x4663d0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599089
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x62819c]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 1
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x2c]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x34], 1
cmovae eax, dword [ebp + 0xc]
push ecx
push eax
mov dword [ebp - 0x2c], 0
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x466537
xor esi, esi
cmp dword [ebp - 0x2c], esi
jle 0x466530
lea ecx, [ecx]
mov edx, dword [eax + esi*4]
test edx, edx
je 0x466526
xor eax, eax
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
mov eax, edx
mov dword [ebp - 0x14], 7
lea ebx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x466484
sub eax, ebx
lea ecx, [ebp - 0x28]
sar eax, 1
push eax
push edx
call fcn.0042daa0
mov ecx, dword [edi + 4]
mov byte [ebp - 4], 2
cmp ecx, dword [edi + 8]
je 0x4664dd
mov eax, dword [ebp - 0x28]
mov edx, 7
mov dword [ecx], eax
mov eax, dword [ebp - 0x24]
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp - 0x18]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x14]
mov dword [ecx + 0x14], eax
xor eax, eax
add dword [edi + 4], 0x18
mov word [ebp - 0x28], ax
jmp 0x4664ec
lea eax, [ebp - 0x28]
push eax
push ecx
mov ecx, edi
call fcn.0043dfb0
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 1
cmp edx, 8
jb 0x466523
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466519
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46658b
push edx
push ecx
call fcn.00546044
add esp, 8
mov eax, dword [ebp - 0x30]
inc esi
cmp esi, dword [ebp - 0x2c]
jl 0x466460
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov edx, dword [ebp + 0x20]
cmp edx, 8
jb 0x46656d
mov ecx, dword [ebp + 0xc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x466563
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x46658b
push edx
push ecx
call fcn.00546044
add esp, 8
mov eax, edi
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.00545ec7
mov esp, ebp
pop ebp
ret
call fcn.00555394
int3
Function at 0x4665a0
Capabilities:
Patch process command line

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5990d1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
push edi
mov eax, dword [0x62819c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 0
xor eax, eax
mov edi, dword [ebp + 8]
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
xor esi, esi
mov dword [ebp - 0x10], 1
mov dword [ebp - 0x14], esi
push dword [ebp + 0xc]
mov dword [ebp - 4], 1
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x466619
mov esi, eax
mov dword [ebp - 0x14], esi
cmp eax, 0xffffffff
je 0x466619
mov bl, 1
jmp 0x46661b
xor bl, bl
push str.NtQueryInformationProcess
push 0x5b5b20
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
push 0x18
lea ecx, [ebp - 0x38]
push ecx
push 0
push esi
call eax
mov edx, dword [ebp - 0x34]
xor ecx, ecx
test edx, edx
movzx eax, bl
cmovne ecx, eax
test cl, cl
je 0x4666e1
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x18]
push 0
push 4
push eax
lea eax, [edx + 0x10]
push eax
push esi
call ebx
test eax, eax
je 0x4666e1
push 0
push 8
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0x40
push eax
push esi
call ebx
test eax, eax
je 0x4666e1
movzx eax, word [ebp - 0x20]
add eax, 2
push eax
call fcn.00554d0f
mov ebx, eax
movzx eax, word [ebp - 0x20]
add eax, 2
push eax
push 0
push ebx
call fcn.0054b380
movzx eax, word [ebp - 0x20]
add esp, 0x10
push 0
push eax
push ebx
push dword [ebp - 0x1c]
push esi
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4666d8
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4666c0
sub ecx, edx
sar ecx, 1
push ecx
push ebx
mov ecx, edi
call fcn.0042daa0
push ebx
call fcn.00554cf4
add esp, 4
test esi, esi
je 0x4666f1
cmp esi, 0xffffffff
je 0x4666f1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret