joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45266d
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x530
push ebx
mov edx, 0x4994b0
lea ecx, [ebp - 0x30]
xor ebx, ebx
call fcn.00444a5e
test al, al
jne 0x452694
mov eax, str.cant_load_wininet.dll
jmp 0x452875
push esi
push ebx
push ebx
push ebx
push ebx
push 0x48e6a4
call dword [ebp - 0x30]
mov dword [ebp - 8], eax
cmp eax, ebx
jne 0x4526b2
mov esi, str.InternetOpen_failed
jmp 0x452872
push ebx
push ebx
push 3
mov eax, 0x48e143
push eax
push eax
push 0x50
push str.update.utorrent.com
push dword [ebp - 8]
call dword [ebp - 0x2c]
mov dword [ebp - 0xc], eax
cmp eax, ebx
jne 0x4526db
mov esi, str.InternetConnect_failed
jmp 0x45286c
push edi
call sub.MSVCRT.dll__getpid
mov esi, eax
call fcn.0045375e
push dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
push ecx
push esi
push eax
push 0x5cde
push str._crash.php_ver_dUh_sp_dUpr_dUs_dU
mov dword [ebp - 0x14], eax
mov edi, 0x500
lea eax, [ebp - 0x530]
push edi
push eax
call fcn.0043b44e
add esp, 0x20
mov esi, eax
cmp byte [0x4c5578], bl
je 0x45273f
push 0x4c5578
mov eax, edi
sub eax, esi
push 0x499660
push eax
lea eax, [ebp + esi - 0x530]
push eax
call fcn.0043b44e
add esp, 0x10
add esi, eax
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x452767
cmp byte [eax], bl
je 0x452767
push eax
mov eax, edi
sub eax, esi
push str.dl_s
push eax
lea eax, [ebp + esi - 0x530]
push eax
call fcn.0043b44e
add esp, 0x10
add esi, eax
mov eax, edi
sub eax, esi
push str.wm
push eax
lea eax, [ebp + esi - 0x530]
push eax
call fcn.0043b44e
add esi, eax
mov edx, edi
add esp, 0xc
sub edx, esi
lea ecx, [ebp + esi - 0x530]
call fcn.0041d509
mov ecx, dword [ebp - 0x14]
call fcn.004433ab
mov esi, dword [ebp + 8]
mov eax, str.POST
cmp esi, ebx
jne 0x4527ac
mov eax, 0x491330
push ebx
push 0x4000000
push ebx
push ebx
push ebx
lea ecx, [ebp - 0x530]
push ecx
push eax
push dword [ebp - 0xc]
call dword [ebp - 0x28]
mov edi, eax
cmp edi, ebx
jne 0x4527d3
mov esi, str.HttpOpenRequest_failed
jmp 0x452865
mov eax, str.Content_type:_application_binary
cmp esi, ebx
jne 0x4527e1
mov eax, 0x48e143
mov ecx, esi
neg ecx
sbb ecx, ecx
and ecx, dword [ebp + 0xc]
push ecx
push esi
push 0xffffffffffffffff
push eax
push edi
call dword [ebp - 0x24]
test eax, eax
jne 0x4527fe
mov esi, str.HttpSendRequest_failed
jmp 0x452861
push ebx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x20000013
push edi
mov dword [ebp - 4], 4
call dword [ebp - 0x1c]
test eax, eax
jne 0x452822
mov esi, str.HttpQueryInfo_failed
jmp 0x452861
cmp dword [ebp - 0x10], 0xc8
je 0x45285f
push dword [ebp - 0x10]
mov esi, 0x4c5978
push str.Error__d_:
push 0x64
push esi
call fcn.0043b44e
add esp, 0x10
push 0x64
pop ecx
sub ecx, eax
push ebx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
push ecx
lea eax, [eax + 0x4c5978]
push eax
push 0x14
push edi
call dword [ebp - 0x1c]
jmp 0x452861
mov esi, ebx
push edi
call dword [ebp - 0x20]
push dword [ebp - 0xc]
call dword [ebp - 0x20]
pop edi
push dword [ebp - 8]
call dword [ebp - 0x20]
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x45291c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor edi, edi
lea eax, [ebp - 0x5c]
push edi
push eax
mov dword [ebp - 4], edx
mov dword [ebp - 8], ecx
call sub.MSVCRT.dll_memset
mov ebx, dword [ebp + 0xc]
add esp, 0xc
mov dword [ebp - 0x5c], esi
cmp ebx, edi
je 0x452982
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push 2
push 1
push edi
lea eax, [ebp + 0xc]
push eax
call esi
push eax
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je 0x45296b
mov eax, dword [ebp + 0xc]
or dword [ebp - 0x30], 0x100
or dword [ebp - 0x30], 1
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x2c], ax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp + 8]
xor eax, eax
push edi
cmp ebx, edi
setne al
push edi
push eax
push edi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp + 0xc], eax
cmp eax, edi
je 0x4529ca
mov eax, dword [ebp + 0x10]
cmp eax, edi
je 0x4529c0
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
jmp 0x4529c5
push dword [ebp - 0x18]
call esi
push dword [ebp - 0x14]
call esi
cmp ebx, edi
je 0x4529d3
push dword [ebp - 0x1c]
call esi
xor eax, eax
cmp dword [ebp + 0xc], edi
pop edi
pop esi
setne al
pop ebx
leave
ret 0xc

Function at 0x452c3b
Capabilities:
Create process on windows

Disassembly:
push esi
push edi
mov esi, edx
mov edi, ecx
call fcn.004117b8
cmp byte [eax + 0x11d], 0
push esi
je 0x452c57
push str._AUTOUPDATE___s___1
jmp 0x452c5c
push str._AUTOUPDATE___s_
call fcn.0043b6af
pop ecx
pop ecx
push 1
push 0
push eax
push edi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setg cl
pop edi
mov al, cl
pop esi
ret

Function at 0x452cb4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0x20
lea edx, [ebp - 0x208]
xor ecx, ecx
call fcn.00467a14
test eax, eax
je 0x452d1d
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x452cf1
sub eax, edx
sar eax, 1
cmp eax, 0xa
jbe 0x452d1d
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x410]
call fcn.004398fc
test al, al
je 0x452d1d
mov al, 1
jmp 0x452d70
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x452d6e
lea edx, [ebp - 0x208]
push esi
mov ecx, edx
call fcn.00467ccc
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x452d46
sub eax, edx
sar eax, 1
cmp eax, 0xa
jbe 0x452d6e
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x410]
call fcn.004398fc
test al, al
jne 0x452d19
xor al, al
pop esi
leave
ret
Function at 0x452d73
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 0x452ee5
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 0x452da5
mov eax, esi
mov edx, esi
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x452dbf
sub eax, edx
lea edi, [ebp - 0x410]
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x452dd3
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.0041209e
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 0x452dfd
mov ecx, eax
call fcn.004433ab
lea edi, [ebp - 0x208]
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x452e1a
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.00444392
mov esi, eax
lea eax, [ebp - 0x410]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x452e47
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x410]
call fcn.0043a258
mov edx, eax
mov ecx, esi
call fcn.004443fc
mov ecx, esi
call fcn.004443c0
lea edi, [ebp - 0x618]
dec edi
dec edi
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x452e79
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 0x452e95
sub eax, edx
lea edi, [ebp - 0x618]
dec edi
dec edi
mov cx, word [edi + 2]
add edi, ebx
test cx, cx
jne 0x452ea9
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.0043a258
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 0x452ee7
xor al, al
pop esi
leave
ret
Function at 0x452f4f
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.0041209e
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 0x452f72
lea edi, [ebp - 0x210]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
test ax, ax
jne 0x452f88
mov edx, dword [ebp - 4]
mov esi, 0x499bfc
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.004450ec
test al, al
je 0x45300c
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.00452c3b
test al, al
je 0x45300c
mov esi, dword [sym.imp.KERNEL32.DLL_OpenMutexA]
mov dword [ebp - 4], 0x12c
mov ebx, 0x499be8
mov edi, 0x1f0001
jmp 0x452ffe
push 0x64
call dword [sym.imp.KERNEL32.DLL_Sleep]
dec dword [ebp - 4]
je 0x45300c
push ebx
push 0
push edi
call esi
test eax, eax
je 0x452ff1
mov al, 1
jmp 0x453023
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov ecx, dword [ebp - 8]
call fcn.004433ab
xor al, al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45306d
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 0x453093
push 0x499be8
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 0x4531c4
mov ecx, dword [ebp - 0xc]
call fcn.004451ba
test al, al
je 0x4530f2
push 0
push dword [ebp - 0xc]
lea eax, [ebp - 0x23c]
push eax
call esi
test eax, eax
jne 0x4531da
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x23c]
call fcn.00444146
test al, al
jne 0x4531da
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp + 8]
jne 0x453156
cmp byte [ebp - 8], 0
je 0x453156
call fcn.00460367
test al, al
je 0x453156
cmp dword [0x4c60ac], 0
jne 0x453156
push dword [ebp + 8]
push dword [ebp - 0xc]
push str._AUTOUPDATE___s___NORUN__d
call fcn.0043b6af
add esp, 0xc
push 0
push 1
push 1
mov edx, eax
lea ecx, [ebp - 0x23c]
call fcn.00462159
test al, al
jne 0x453227
dec dword [ebp - 0x14]
jne 0x4531c1
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 0x4b7890
mov dword [ebp - 0x14], eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x4531a4
cmp dword [0x4c60ac], 2
je 0x4531b1
push dword [0x4cccd8]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x35
call fcn.0044f78b
pop ecx
pop ecx
cmp eax, 2
je 0x453218
jmp 0x4531ba
cmp dword [0x4c60ac], 2
jne 0x453235
cmp dword [ebp - 0x10], 0
je 0x453218
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 0x4530d0
cmp byte [ebp - 8], 0
je 0x453214
mov ecx, dword [ebp - 0xc]
call fcn.00453028
test al, al
jne 0x453218
cmp dword [0x4c60ac], 2
je 0x453214
push dword [0x4cccd4]
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x10
call fcn.0044f78b
pop ecx
pop ecx
mov byte [ebp - 1], 1
call fcn.00452eea
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
leave
ret 4
mov ecx, dword [ebp - 0xc]
call fcn.00453028
test al, al
jne 0x453214
jmp 0x4531ec
mov ecx, dword [ebp - 0x14]
push 0x104
lea edx, [ebp - 0x444]
call fcn.00467928
lea eax, [ebp - 0x444]
push eax
push dword [0x4cccd0]
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x30], 0x30
call fcn.0043b6af
push eax
lea eax, [ebp - 0x34]
push eax
call fcn.0044f78b
add esp, 0x10
jmp 0x453218
Function at 0x4561c1
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 0x4561f5
inc eax
cmp dword [ebp + 0x10], eax
je 0x4561f7
cmp dword [ebp + 0x10], 2
je 0x4561f7
xor eax, eax
leave
ret 0xc

Function at 0x4561fb
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 0x456205
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 0x456243
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.00447082
add esp, 0x10
pop ebp
ret 8

Function at 0x45627d
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 0x4562ae
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.00447082
add esp, 0x10
ret 8

Function at 0x4562b1
Capabilities:
Delete registry value

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

Function at 0x456307
Capabilities:
Delete registry key

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x45632b
push dword [esp + 8]
push eax
push str.RegKey:_Could_not_delete_subkey__d:__s_n
call fcn.00447082
add esp, 0xc
ret 8
Function at 0x45632e
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 [0x4c621c]
mov esi, eax
call fcn.00443bc8
mov edi, dword [sym.imp.USER32.dll_AppendMenuW]
mov ecx, eax
mov dword [esp + 0x18], ecx
xor ebx, ebx
jmp 0x45635e
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
call fcn.00439b7e
mov ecx, dword [esp + 0x10]
push 0x7c
pop edx
mov dword [esp + 0x14], eax
call fcn.00439b11
mov eax, dword [esp + 0x10]
xor ecx, ecx
cmp word [eax], cx
je 0x456388
push eax
inc ebx
push ebx
push ecx
jmp 0x45638f
push ecx
push ecx
push 0x800
push esi
call edi
cmp dword [esp + 0x14], 0
jne 0x45635a
push 0
push 0
push 0x800
push esi
call edi
push dword [0x4cc068]
inc ebx
inc ebx
push ebx
push 0
push esi
call edi
mov eax, dword [0x4c6220]
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.004433ab
push edi
push dword [0x4c40cc]
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 0x456416
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x45640c
push 0xc
pop ecx
call fcn.00482ad2
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
cmp ebp, edi
je 0x45640c
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x45640c
mov eax, ebp
jmp 0x45640e

Function at 0x456753
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, ecx
and dword [esi], 0
push edi
mov edx, 0x49a54c
mov ecx, 0x49a544
mov byte [esi + 4], 1
mov byte [esi + 8], 0
mov byte [esi + 9], 0
call fcn.00442f8d
mov edi, eax
mov ecx, edi
call fcn.00442f79
push eax
mov ecx, esi
call fcn.00401b6f
mov ecx, edi
call fcn.004433ab
mov eax, dword [esi]
test eax, eax
jne 0x456798
mov eax, 0x492538
push 0x49a540
mov ecx, eax
call fcn.0043a258
push eax
call sub.MSVCRT.dll_fopen
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4567da
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 0x4567d3
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 0x456fcd
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2000
call fcn.0048bdc0
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 0x456fe3
sub eax, esi
sar eax, 1
mov esi, eax
mov eax, 0x7d0
cmp esi, eax
jl 0x456ffe
mov esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x2000]
call fcn.00411960
lea edx, [esi + esi]
mov eax, 0x49a580
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 0x45701e
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 0x4574a3
Capabilities:
Create directory

Disassembly:
cmp dword [0x4c59ec], 0
jne 0x4574fe
push 0x2c
call fcn.00443c1f
pop ecx
test eax, eax
je 0x4574c6
mov ecx, eax
call fcn.00457480
mov dword [0x4c59ec], eax
jmp 0x4574cd
and dword [0x4c59ec], 0
mov ecx, str.dlimagecache_
call fcn.00442f79
mov ecx, dword [0x4c59ec]
push eax
add ecx, 0x24
call fcn.00401b6f
mov eax, dword [0x4c59ec]
mov eax, dword [eax + 0x24]
test eax, eax
jne 0x4574f7
mov eax, 0x492538
mov ecx, eax
jmp fcn.004451ba
mov al, 1
ret

Function at 0x45df70
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.0045de67
call fcn.00447082
mov eax, dword [esi + 0x10]
test eax, eax
je 0x45dfa0
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x45dfad
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, dword [esi + 8]
test esi, esi
je 0x45dfba
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop esi
ret
Function at 0x45f924
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.0045291c
test al, al
je 0x45fa4d
mov ecx, 0x104
call fcn.0044394c
mov edi, eax
mov byte [ebp - 1], bl
jmp 0x45fa09
cmp dword [ebp - 8], ebx
jne 0x45f9d0
cmp byte [ebp - 1], bl
jne 0x45fa1e
push 0xc8
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x45fa09
mov byte [ebp - 1], 1
jmp 0x45fa09
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 0x45f9f3
cmp dword [ebp - 8], ebx
jne 0x45fa06
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x6d
je 0x45fa1e
cmp esi, 0x103
je 0x45fa1e
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 0x45f9ab
mov ecx, edi
mov byte [esi + edi], bl
call fcn.00439cb2
mov ecx, edi
mov esi, eax
call fcn.004433ab
cmp dword [ebp + 0xc], ebx
je 0x45fa42
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 0x45fa57
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x45fa57
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 0x45fc3b
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push 0x104
lea eax, [ebp - 0x208]
push eax
push 0x495ce8
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, reloc.WS2_32.dll_accept
call fcn.004570a9
test al, al
je 0x45fcc5
cmp dword [ebp + 8], 0
je 0x45fcc3
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45fc74
sub eax, edx
sar eax, 1
cmp word [ebp - 0x208], 0x22
push esi
mov esi, eax
jne 0x45fcbe
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x206]
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x45fcbe
movzx eax, word [ebp + esi*2 - 0x206]
test ax, ax
je 0x45fcbe
cmp ax, 0x22
jne 0x45fcbe
xor eax, eax
inc eax
jmp 0x45fcc0
xor eax, eax
pop esi
jmp 0x45fcc5
mov al, 1
leave
ret 4