joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454008
Capabilities:
Create process on windows
Get comspec environment variable
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x618
push esi
push 0x104
lea eax, [ebp - 0x618]
push eax
push str.COMSPEC
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x45417a
push ebx
push edi
push 2
xor eax, eax
pop ebx
movzx ecx, word [eax + str.ping__n_2_127.0.0.1_r_n]
mov word [ebp + eax - 0x410], cx
add eax, ebx
test cx, cx
jne 0x45403a
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x454054
sub eax, edx
lea edi, [ebp - 0x410]
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x454068
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
call fcn.00412380
lea edx, [ebp - 0x208]
mov esi, eax
sub edx, eax
movzx edi, word [esi]
mov word [edx + esi], di
add esi, ebx
test di, di
jne 0x454092
mov ecx, eax
call fcn.004444cc
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x4540af
mov esi, str..bat
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 7
pop edx
lea ecx, [ebp - 0x208]
movsw word es:[edi], word [esi]
call fcn.00445486
mov esi, eax
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4540dc
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x410]
call fcn.0043b2f1
mov edx, eax
mov ecx, esi
call fcn.004454f0
mov ecx, esi
call fcn.004454b4
lea edi, [ebp - 0x618]
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x45410e
mov esi, str.__C
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x208]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x45412a
sub eax, edx
lea edi, [ebp - 0x618]
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x45413e
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 0
lea ecx, [ebp - 0x618]
call fcn.0043b2f1
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
push 0x1f
pop ecx
cmp ecx, eax
sbb eax, eax
pop edi
neg eax
pop ebx
jmp 0x45417c
xor al, al
pop esi
leave
ret
Function at 0x4541e4
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
mov dword [ebp - 4], ecx
push edi
xor ecx, ecx
mov ebx, edx
call fcn.00412380
lea edx, [ebp - 0x210]
mov dword [ebp - 8], eax
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x454207
lea edi, [ebp - 0x210]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x45421d
mov edx, dword [ebp - 4]
mov esi, 0x49bd04
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ebx
lea ecx, [ebp - 0x210]
movsw word es:[edi], word [esi]
call fcn.004461f9
test al, al
je 0x4542a1
push 0x104
lea eax, [ebp - 0x418]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea edx, [ebp - 0x418]
lea ecx, [ebp - 0x210]
call fcn.00453ed0
test al, al
je 0x4542a1
mov esi, dword [sym.imp.KERNEL32.DLL_OpenMutexA]
mov dword [ebp - 4], 0x12c
mov ebx, 0x49bcf0
mov edi, 0x1f0001
jmp 0x454293
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp - 4]
je 0x4542a1
push ebx
push 0
push edi
call esi
test eax, eax
je 0x454286
mov al, 1
jmp 0x4542b8
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [ebp - 8]
call fcn.004444cc
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4542de
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov byte [ebp - 8], dl
mov dword [ebp - 0xc], ecx
mov byte [ebp - 1], 0
test dl, dl
je 0x454304
push 0x49bcf0
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x23c]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.DLL_Sleep]
mov ebx, 0x1f4
push ebx
mov dword [ebp - 0x10], 3
mov dword [ebp - 0x14], eax
call edi
mov esi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
jmp 0x454435
mov ecx, dword [ebp - 0xc]
call fcn.004462c7
test al, al
je 0x454363
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 0x23c]
push eax
call esi
test eax, eax
jne 0x45444b
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x23c]
call fcn.0044523a
test al, al
jne 0x45444b
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x4543c7
cmp byte [ebp - 8], 0
je 0x4543c7
call fcn.00461777
test al, al
je 0x4543c7
cmp dword [0x4c9214], 0
jne 0x4543c7
push dword [ebp + 8]
push dword [ebp - 0xc]
push str._AUTOUPDATE___s___NORUN__d
call fcn.0043c748
add esp, 0xc
push 0
push 1
push 1
mov edx, eax
lea ecx, [ebp - 0x23c]
call fcn.0046362a
test al, al
jne 0x454498
dec dword [ebp - 0x14]
jne 0x454432
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 0x4ba8e8
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x454415
cmp dword [0x4c9214], 2
je 0x454422
push dword [0x4d034c]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x35
call fcn.00450a1d
pop ecx
pop ecx
cmp eax, 2
je 0x454489
jmp 0x45442b
cmp dword [0x4c9214], 2
jne 0x4544a6
cmp dword [ebp - 0x10], 0
je 0x454489
dec dword [ebp - 0x10]
mov dword [ebp - 0x14], 0xa
push ebx
call edi
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 0x23c]
push eax
call esi
test eax, eax
je 0x454341
cmp byte [ebp - 8], 0
je 0x454485
mov ecx, dword [ebp - 0xc]
call fcn.004542bd
test al, al
jne 0x454489
cmp dword [0x4c9214], 2
je 0x454485
push dword [0x4d0348]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x10
call fcn.00450a1d
pop ecx
pop ecx
mov byte [ebp - 1], 1
call fcn.0045417f
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 0xc]
call fcn.004542bd
test al, al
jne 0x454485
jmp 0x45445d
mov ecx, dword [ebp - 0x14]
push 0x104
lea edx, [ebp - 0x444]
call fcn.00468e66
lea eax, [ebp - 0x444]
push eax
push dword [0x4d0344]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x30
call fcn.0043c748
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.00450a1d
add esp, 0x10
jmp 0x454489
Function at 0x4574ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x10]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4574e0
inc eax
cmp dword [ebp + 0x10], eax
je 0x4574e2
cmp dword [ebp + 0x10], 2
je 0x4574e2
xor eax, eax
leave
ret 0xc

Function at 0x4574e6
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
lea edx, [eax + 2]
push esi
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x4574f0
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0xc]
push 1
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
test eax, eax
je 0x45752e
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.RegKey:_Could_not_write_string_valuename__s_value__s__Error__d_n
call fcn.00458e5e
add esp, 0x10
pop ebp
ret 8

Function at 0x457568
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x457599
push eax
push dword [esp + 0xc]
push dword [esp + 0xc]
push str.RegKey:_Could_not_write_DWORD_valuename__s_value__d__Error__d_n
call fcn.00458e5e
add esp, 0x10
ret 8

Function at 0x45759c
Capabilities:
Delete registry value

Disassembly:
push dword [esp + 4]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4575be
push dword [esp + 4]
push eax
push str.RegKey:_Could_not_delete_value__d:__s_n
call fcn.00458e5e
add esp, 0xc
ret 4

Function at 0x4575f2
Capabilities:
Delete registry key

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x457616
push dword [esp + 8]
push eax
push str.RegKey:_Could_not_delete_subkey__d:__s_n
call fcn.00458e5e
add esp, 0xc
ret 8
Function at 0x457619
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov ecx, dword [0x4c9384]
mov esi, eax
call fcn.00444cbc
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
mov ecx, eax
mov dword [esp + 0x18], ecx
xor ebx, ebx
jmp 0x457649
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
call fcn.0043ac14
mov ecx, dword [esp + 0x10]
push 0x7c
pop edx
mov dword [esp + 0x14], eax
call fcn.0043aba7
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp word [eax], cx
je 0x457673
push eax
inc ebx
push ebx
push ecx
jmp 0x45767a
push ecx
push ecx
push 0x800
push esi
call edi
cmp dword [esp + 0x14], 0
jne 0x457645
push 0
push 0
push 0x800
push esi
call edi
push dword [0x4cf6b0]
inc ebx
inc ebx
push ebx
push 0
push esi
call edi
mov eax, dword [0x4c9388]
xor edi, edi
push edi
inc eax
push eax
push ebx
push 1
push esi
call dword [sym.imp.USER32.dll_CheckMenuRadioItem]
mov ecx, dword [esp + 0x18]
call fcn.004444cc
push edi
push dword [0x4c722c]
push edi
push dword [ebp + 4]
push dword [ebp]
push 0x18a
push esi
call dword [sym.imp.USER32.dll_TrackPopupMenu]
push esi
mov ebp, eax
call dword [sym.imp.USER32.dll_DestroyMenu]
cmp ebp, ebx
jne 0x457701
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4576f7
push 0xc
pop ecx
call fcn.00484603
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp ebp, edi
je 0x4576f7
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x4576f7
mov eax, ebp
jmp 0x4576f9

Function at 0x457a3e
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
and dword [esi], 0
push edi
mov edx, 0x49c61c
mov ecx, 0x49c614
mov byte [esi + 4], 1
mov byte [esi + 8], 0
mov byte [esi + 9], 0
call fcn.004440ae
mov edi, eax
mov ecx, edi
call fcn.0044409a
push eax
mov ecx, esi
call fcn.004019c6
mov ecx, edi
call fcn.004444cc
mov eax, dword [esi]
test eax, eax
jne 0x457a83
mov eax, 0x4945b8
push 0x49c610
mov ecx, eax
call fcn.0043b2f1
push eax
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x457ac5
push edi
push dword [esp + 0x14]
mov byte [esi + 8], 1
push 1
push dword [esp + 0x18]
call sub.MSVCRT.dll_fwrite
add esp, 0x10
cmp dword [esp + 0x10], eax
jne 0x457abe
mov byte [esi + 9], 1
push edi
call sub.MSVCRT.dll_fclose
pop ecx
pop edi
mov eax, esi
pop esi
ret 8
Function at 0x4582ba
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0048d960
push esi
mov eax, edx
push edi
mov edi, ecx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x4582d0
sub eax, esi
sar eax, 1
mov esi, eax
mov eax, 0x7d0
cmp esi, eax
jl 0x4582eb
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x2000]
call fcn.00411c42
lea edx, [esi + esi]
mov eax, 0x49c650
lea ecx, [ebp + edx - 0x2000]
sub ecx, eax
movzx esi, word [eax]
mov word [ecx + eax], si
inc eax
inc eax
test si, si
jne 0x45830b
push 0x82d
lea eax, [ebp + edx - 0x1ffa]
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x2000]
push eax
push edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
pop edi
pop esi
leave
ret
Function at 0x458790
Capabilities:
Create directory

Disassembly:
cmp dword [0x4c8b4c], 0
jne 0x4587eb
push 0x2c
call fcn.00444d13
pop ecx
test eax, eax
je 0x4587b3
mov ecx, eax
call fcn.0045876d
mov dword [0x4c8b4c], eax
jmp 0x4587ba
and dword [0x4c8b4c], 0
mov ecx, str.dlimagecache_
call fcn.0044409a
mov ecx, dword [0x4c8b4c]
push eax
add ecx, 0x24
call fcn.004019c6
mov eax, dword [0x4c8b4c]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x4587e4
mov eax, 0x4945b8
mov ecx, eax
jmp fcn.004462c7
mov al, 1
ret

Function at 0x45f365
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, esi
call fcn.0045f25c
call fcn.00458e5e
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45f395
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x45f3a2
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esi + 8]
test esi, esi
je 0x45f3af
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop esi
ret
Function at 0x460d31
Capabilities:
Create pipe
Read file on windows
Read pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
mov edi, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.DLL_CreatePipe]
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
call esi
push eax
push dword [ebp - 0x14]
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x18]
mov edx, edi
push ebx
xor esi, esi
call fcn.00453bb1
test al, al
je 0x460e5a
mov ecx, 0x104
call fcn.00444a40
mov edi, eax
mov byte [ebp - 1], bl
jmp 0x460e16
cmp dword [ebp - 8], ebx
jne 0x460ddd
cmp byte [ebp - 1], bl
jne 0x460e2b
push 0xc8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x460e16
mov byte [ebp - 1], 1
jmp 0x460e16
push ebx
lea eax, [ebp - 8]
push eax
mov eax, 0x103
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x460e00
cmp dword [ebp - 8], ebx
jne 0x460e13
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x460e2b
cmp esi, 0x103
je 0x460e2b
add esi, dword [ebp - 8]
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_PeekNamedPipe]
test eax, eax
jne 0x460db8
mov ecx, edi
mov byte [esi + edi], bl
call fcn.0043ad4b
mov ecx, edi
mov esi, eax
call fcn.004444cc
cmp dword [ebp + 0xc], ebx
je 0x460e4f
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x460e64
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x460e64
or dword [eax], 0xffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x46104b
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x497e28
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, reloc.WS2_32.dll_accept
call fcn.00458396
test al, al
je 0x4610d5
cmp dword [ebp + 8], 0
je 0x4610d3
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x461084
sub eax, edx
sar eax, 1
cmp word [ebp - 0x208], 0x22
push esi
mov esi, eax
jne 0x4610ce
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x206]
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x4610ce
movzx eax, word [ebp + esi*2 - 0x206]
test ax, ax
je 0x4610ce
cmp ax, 0x22
jne 0x4610ce
xor eax, eax
inc eax
jmp 0x4610d0
xor eax, eax
pop esi
jmp 0x4610d5
mov al, 1
leave
ret 4
Function at 0x4610d9
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
xor eax, eax
push esi
cmp cl, al
je 0x461136
push 0x22
pop ecx
mov word [ebp - 0x21c], cx
push 0x104
lea ecx, [ebp - 0x21a]
push ecx
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov esi, eax
lea eax, [ebp - 0x21a]
push eax
call fcn.0046104b
test al, al
jne 0x46114b
lea eax, [esi + esi]
push 0x22
pop ecx
mov word [ebp + eax - 0x21a], cx
xor ecx, ecx
mov word [ebp + eax - 0x218], cx
lea eax, [ebp - 0x21c]
push eax
push 0x497e28
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, reloc.WS2_32.dll_accept
call fcn.00458474
pop esi
leave
ret

Function at 0x461222
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 2], 1
mov byte [ebp - 1], bl
call fcn.0042cdbb
test eax, eax
jge 0x46124b
call fcn.0042cde6
jmp 0x461377
push esi
lea eax, [ebp - 8]
push eax
push 0x4b22f8
push 1
push ebx
mov esi, 0x4b22e8
push esi
call dword [0x4c5d8c]
test eax, eax
jl 0x46126d
cmp dword [ebp - 8], ebx
jne 0x461294
lea eax, [ebp - 8]
push eax
push 0x4b22d8
push 1
push ebx
push esi
mov byte [ebp - 2], bl
call dword [0x4c5d8c]
test eax, eax
jl 0x461371
cmp dword [ebp - 8], ebx
je 0x461371
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x49dc68
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [eax]
call dword [eax]
test eax, eax
jl 0x46134b
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x46134b
mov ecx, dword [ebp + 0xc]
mov esi, dword [eax]
push ebx
call fcn.0043adf0
push eax
push dword [ebp - 0xc]
call dword [esi + 0x14]
mov esi, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jl 0x46134b
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 4
cmp byte [ebp - 2], bl
je 0x46130d
lea edx, [ebp - 0x568]
push edx
push 0x104
lea edx, [ebp - 0x318]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x461348
lea eax, [ebp - 0x318]
jmp 0x461335
lea edx, [ebp - 0x250]
push edx
push 0x104
lea edx, [ebp - 0x110]
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x110]
mov esi, eax
call fcn.0043ad91
cmp esi, ebx
jl 0x461348
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll__wcsicmp
pop ecx
pop ecx
mov byte [ebp - 1], 1
test eax, eax
je 0x46134b
mov byte [ebp - 1], bl
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], bl
je 0x461371
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push ebx
push dword [ebp + 0xc]
push 5
pop edx
push 4
pop ecx
call fcn.00469034
call fcn.0042cde6
pop esi
pop ebx
leave
ret 8
Function at 0x461453
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push ebx
push esi
push edi
mov eax, ecx
lea edx, [ebp - 0x66c]
push 2
mov dword [ebp - 4], eax
sub edx, eax
pop ebx
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x46146f
lea edi, [ebp - 0x66c]
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x461485
mov esi, 0x49f0e8
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x25c]
movsd dword es:[edi], dword [esi]
push eax
lea eax, [ebp - 0x66c]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x4615e1
lea edx, [ebp - 0x464]
sub edx, dword [ebp - 4]
mov dword [ebp - 0xc], edx
jmp 0x4614ca
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, ebx
test cx, cx
jne 0x4614cd
lea edi, [ebp - 0x464]
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x4614e3
mov esi, 0x49dd30
lea eax, [ebp - 0x230]
movsd dword es:[edi], dword [esi]
mov edx, eax
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4614fc
sub eax, edx
lea edi, [ebp - 0x464]
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x461510
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test byte [ebp - 0x25c], 0x10
rep movsb byte es:[edi], byte [esi]
jne 0x461541
lea ecx, [ebp - 0x464]
call fcn.004148e3
jmp 0x4615c0
mov ecx, 0x4997cc
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x461572
test dx, dx
je 0x46156e
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x461572
add eax, 4
add ecx, 4
test dx, dx
jne 0x46154c
xor eax, eax
jmp 0x461577
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4615c0
mov ecx, 0x4997d0
lea eax, [ebp - 0x230]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4615ac
test dx, dx
je 0x4615a8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4615ac
add eax, 4
add ecx, 4
test dx, dx
jne 0x461586
xor eax, eax
jmp 0x4615b1
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x4615c0
lea ecx, [ebp - 0x464]
call fcn.00461453
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4614c7
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4616a2
Capabilities:
Terminate process

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
push esi
push edi
xor ebx, ebx
jmp 0x461702
lea eax, [esp + 0x14]
push eax
push 0x7530
push 1
push ebx
push ebx
push 0x16
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x461702
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x10]
push ebx
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, ebx
je 0x461719
cmp edi, ebx
je 0x461719
push ebx
push 0x4ba8e8
call ebp
mov esi, eax
cmp esi, ebx
jne 0x4616b2
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push edi
push esi
push str.TerminateSessionClientInstances_failed__hp:0x_X_result:_d_n
call fcn.00458e5e
add esp, 0xc
xor al, al
jmp 0x461712

Function at 0x461d1c
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetVersion]
push 0x11c
lea edi, [esi + 4]
push 0
lea ebx, [esi + 0x124]
and dword [ebx], 0
push edi
mov dword [esi], eax
mov byte [esi + 0x120], 0
call sub.MSVCRT.dll_memset
movzx eax, byte [esi]
add esp, 0xc
cmp eax, 5
jb 0x461d6c
push edi
mov dword [edi], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
setne al
mov byte [esi + 0x120], al
movzx eax, byte [esi]
cmp eax, 6
jb 0x461d97
mov edx, str.GetProductInfo
mov ecx, 0x491fb0
call fcn.00445bc7
test eax, eax
je 0x461d97
movzx ecx, byte [esi + 1]
push ebx
push 0
push 0
push ecx
movzx ecx, byte [esi]
push ecx
call eax
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x4622f3
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push edx
mov ebx, ecx
push ebx
xor esi, esi
push str.__s___s
mov dword [ebp - 4], esi
call fcn.0043c748
push 0x44
pop edi
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 0x5c]
push esi
push eax
call sub.MSVCRT.dll_memset
mov dword [ebp - 0x5c], edi
xor eax, eax
lea edi, [ebp - 0x18]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0x18
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push esi
push esi
push 0x10
push 1
push esi
push esi
push dword [ebp - 8]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
pop edi
pop esi
pop ebx
test eax, eax
jne 0x462352
leave
ret
push 0xffffffffffffffff
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
mov eax, dword [ebp - 4]
leave
ret
Function at 0x46360f
Capabilities:
Get disk information

Disassembly:
push esi
mov esi, dword [0x4c8bd8]
mov eax, SysReAllocString
and esi, eax
cmp esi, eax
pop esi
jne 0x463625
mov al, 1
ret
jmp fcn.00462c1d