joyce8/EMBER2024-capa huggingface dataset:
Function at 0x592eb2
Capabilities:
Hide graphical window

Disassembly:
mov eax, 0x69e10f
call fcn.006375a8
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp dword [esi + 0x4c], ebx
je 0x592f98
push edi
mov edi, dword [esi + 4]
mov dword [ebp + 8], edi
test edi, edi
je 0x592ee1
push 0
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x48]
mov dword [esi + 0x4c], ebx
mov eax, dword [eax + ebx*4]
mov dword [esi + 4], eax
test eax, eax
jne 0x592f57
push 0x14
call fcn.00637305
mov edi, eax
pop ecx
mov dword [ebp - 0x10], edi
and dword [ebp - 4], 0
test edi, edi
je 0x592f1e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x10]
mov dword [edi + 8], esi
mov dword [edi], 0x7059f4
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], eax
jmp 0x592f20
xor edi, edi
mov eax, dword [esi + 0x40]
mov ecx, ebx
or dword [ebp - 4], 0xffffffff
add ecx, ecx
push edi
push fcn.0058a571
push dword [eax + 4]
mov eax, dword [esi + 0x44]
push dword [eax + ecx*8]
push dword [0x7d26a4]
call fcn.00589715
cmp byte [esi + 0x50], 0
mov dword [esi + 4], eax
je 0x592f54
push eax
call fcn.0058a7dc
mov edi, dword [ebp + 8]
mov ecx, dword [esi + 0x40]
or edx, 0xffffffff
push ebx
push esi
mov eax, dword [ecx]
call dword [eax + 0x30]
mov eax, dword [esi + 0x3c]
sub eax, dword [esi + 0x34]
push 0x250
push eax
mov eax, dword [esi + 0x38]
sub eax, dword [esi + 0x30]
push eax
push dword [esi + 0x34]
push dword [esi + 0x30]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
cmp dword [ebp + 0xc], 0
je 0x592f97
push edi
push dword [ebp + 0xc]
call fcn.005909fc
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x597b2c
Capabilities:
Check mutex on windows

Disassembly:
mov eax, 0x6ab8e8
call fcn.006375a8
sub esp, 0x244
push ebx
xor ebx, ebx
inc ebx
cmp byte [ebp + 0xc], 0
push esi
mov dword [ebp - 0x10], ebx
je 0x597b7f
call fcn.004917ef
push eax
lea eax, [ebp - 0x28]
push str._s_Updater
push eax
call fcn.004638c2
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x597b69
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push 0
push ebx
lea ecx, [ebp - 0x28]
call fcn.0040daff
push 0x104
lea eax, [ebp - 0x250]
xor ebx, ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push ebx
push 0x785564
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
je 0x597be1
lea ecx, [ebp + 0xc]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp + 0xc], ebx
je 0x597be1
push dword [ebp + 0xc]
push ebx
push 0x100000
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
test esi, esi
je 0x597be1
push 0x1d4c0
push esi
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x597be1
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
call fcn.004917ad
push eax
lea eax, [ebp - 0x28]
push str._s__BRINGTOFRONT
push eax
call fcn.004638e7
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x597c03
mov eax, dword [eax]
push ebx
push eax
lea eax, [ebp - 0x250]
push eax
call fcn.0059b767
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
xor esi, esi
mov bl, al
push 0
inc esi
push esi
call fcn.004267c2
test bl, bl
jne 0x597c5c
call fcn.0057c48f
test al, al
jne 0x597c58
push 0x6d6058
push 0x7f1
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], 0x10
call fcn.00588778
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.00589668
add esp, 0xc
mov byte [ebp - 0x10], 0
call fcn.00598b26
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x10]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x598924
Capabilities:
Create process on windows
Get common file path
Get comspec environment variable
Get startup folder
Query environment variable

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6a6271
call fcn.006375a8
sub esp, 0x458
lea eax, [ebp - 0x464]
push ebx
push esi
push edi
push 0x104
push eax
push str.COMSPEC
call dword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
test eax, eax
je 0x598b10
xor ebx, ebx
lea eax, [ebp - 0x25c]
push ebx
push 0x25
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.ping.exe
lea ecx, [ebp]
call fcn.00427f43
push 1
lea eax, [ebp]
mov dword [ebp - 4], ebx
push eax
sub esp, 0x18
lea eax, [ebp - 0x25c]
mov ecx, esp
push eax
call fcn.00427f43
lea eax, [ebp - 0x3c]
push eax
call fcn.0045e7e8
push ebx
push 1
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.004267c2
sub esp, 0x18
lea eax, [ebp - 0x24]
lea esi, [ebp - 0x3c]
push 6
pop ecx
mov edi, esp
push str._s__n_2_127.0.0.1_r_n
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.004638e7
add esp, 0x20
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp + 0x18]
call fcn.0042615e
push dword [ebp + 0x70]
mov byte [ebp - 4], 4
call fcn.00426a30
pop ecx
push eax
push dword [ebp + 0x70]
lea ecx, [ebp + 0x18]
call fcn.0042689e
push ebx
push ebx
lea eax, [ebp + 0x4c]
push eax
call fcn.0045ea02
mov esi, str..bat
mov byte [ebp - 4], 5
push esi
call fcn.00426a30
pop ecx
push eax
push esi
lea ecx, [ebp + 0x4c]
call fcn.0042689e
cmp dword [ebp + 0x60], 8
mov eax, dword [ebp + 0x4c]
jae 0x598a24
lea eax, [ebp + 0x4c]
push 0x80
push 7
push eax
call fcn.0045fa00
mov dword [ebp + 0x64], eax
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp]
push eax
call fcn.0043edf3
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x598a4d
mov eax, dword [eax]
push dword [ebp + 0x28]
push eax
push dword [ebp + 0x64]
call fcn.0045fe87
xor edi, edi
mov byte [ebp - 4], 5
push ebx
inc edi
lea ecx, [ebp]
push edi
call fcn.0040daff
lea eax, [ebp + 0x64]
push eax
call fcn.0045f990
lea eax, [ebp - 0x464]
push eax
lea ecx, [ebp + 0x30]
call fcn.00427f43
mov esi, 0x706328
mov byte [ebp - 4], 7
push esi
call fcn.00426a30
pop ecx
push eax
push esi
lea ecx, [ebp + 0x30]
call fcn.0042689e
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x30]
call fcn.0042680e
lea eax, [ebp + 0x30]
push eax
lea eax, [ebp - 0x54]
push eax
call fcn.0043edf3
cmp dword [eax + 0x14], 0x10
jb 0x598ac0
mov eax, dword [eax]
push ebx
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
cmp eax, 0x1f
lea ecx, [ebp - 0x54]
seta bl
xor esi, esi
push esi
push edi
call fcn.0040daff
push esi
push edi
lea ecx, [ebp + 0x30]
call fcn.004267c2
push esi
push edi
lea ecx, [ebp + 0x4c]
call fcn.004267c2
push esi
push edi
lea ecx, [ebp + 0x18]
call fcn.004267c2
push esi
push edi
lea ecx, [ebp - 0x24]
call fcn.004267c2
push esi
push edi
lea ecx, [ebp - 0x3c]
call fcn.004267c2
mov al, bl
jmp 0x598b12
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
lea esp, [ebp + 0x68]
pop ebp
ret 4
Function at 0x59b77f
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push ebx
push esi
push edi
push 0x44
pop esi
push esi
xor ebx, ebx
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00651ed0
mov edi, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x54], esi
test edi, edi
je 0x59b7e3
mov esi, dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea eax, [ebp + 0x14]
push 2
push 1
push ebx
push eax
call esi
push eax
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.DLL_DuplicateHandle]
mov ecx, dword [ebp - 0x28]
neg eax
mov dword [ebp - 0x18], edi
sbb eax, eax
or ecx, 0x100
and eax, dword [ebp + 0x14]
or ecx, 1
mov dword [ebp - 0x14], eax
xor eax, eax
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x54]
push eax
push dword [ebp + 0x10]
xor eax, eax
test edi, edi
push ebx
push ebx
setne al
push eax
push ebx
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ebx, eax
test ebx, ebx
je 0x59b82a
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x59b820
mov ecx, dword [ebp - 0x10]
mov dword [edx], ecx
jmp 0x59b825
push dword [ebp - 0x10]
call esi
push dword [ebp - 0xc]
call esi
test edi, edi
je 0x59b833
push dword [ebp - 0x14]
call esi
xor eax, eax
test ebx, ebx
pop edi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 0x14

Function at 0x59b9d5
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x6a673b
call fcn.006375a8
push ecx
push esi
push dword [ebp + 0xc]
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.0042615e
push dword [ebp + 8]
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.0042615e
mov al, byte [ebp + 0x10]
mov ecx, dword [ebp - 0xc]
mov byte [esi + 0x30], al
mov al, byte [ebp + 0x14]
mov byte [esi + 0x32], al
mov eax, esi
mov byte [esi + 0x31], 0
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x59f59e
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x6a6ced
call fcn.006375a8
push ecx
xor eax, eax
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x708bb8
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov byte [esi + 0x10], al
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [ebp - 4], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov byte [ebp - 4], 1
call fcn.0059fcb9
mov ecx, esi
call fcn.005a0fd8
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x59f814
Capabilities:
Delete file

Disassembly:
mov eax, 0x6ab3b7
call fcn.006375a8
sub esp, 0x18
push ebx
push esi
push edi
push 0x709134
lea eax, [ebp - 0x24]
mov esi, ecx
push eax
call fcn.00470d99
mov edi, str.sua_pmr
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call fcn.00426a30
pop ecx
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.0042689e
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x59f85b
lea eax, [ebp - 0x24]
push ebx
push ebx
push 3
push ebx
push ebx
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
cmp byte [esi + 0x25], bl
jne 0x59f877
cmp eax, 0xffffffff
je 0x59f898
mov bl, 1
cmp eax, 0xffffffff
je 0x59f898
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x59f891
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x24]
mov byte [esi + 0x25], 0
call fcn.004267c2
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x59fcb9
Capabilities:
Create directory

Disassembly:
mov eax, 0x6ab3b7
call fcn.006375a8
sub esp, 0x18
push 0x709134
lea eax, [ebp - 0x24]
push eax
call fcn.00470d99
and dword [ebp - 4], 0
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x59fce4
lea eax, [ebp - 0x24]
push ebx
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x59fd1c
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x59fd1c
cmp dword [ebp - 0x10], 8
mov eax, dword [ebp - 0x24]
jae 0x59fd0b
lea eax, [ebp - 0x24]
push eax
push str.Failed_to_create_directory:__S_n
call fcn.0040c591
pop ecx
pop ecx
xor bl, bl
jmp 0x59fd1e
mov bl, 1
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004267c2
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x5a01c7
Capabilities:
Get number of processors

Disassembly:
push ebp
sub esp, 0x64
mov eax, 0x6a6e44
call fcn.006375a8
sub esp, 0x48
push ebx
push esi
xor ebx, ebx
mov dword [ebp + 0x5c], 7
xor eax, eax
mov dword [ebp + 0x60], ebx
push edi
mov esi, ecx
mov dword [ebp + 0x58], ebx
mov word [ebp + 0x48], ax
push 1
push 0xffffffffffffffff
lea eax, [ebp + 0x64]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp + 0x64], 0x75
call fcn.0043e128
cmp eax, 0xffffffff
je 0x5a0231
push dword [esi + 0x10]
mov ecx, esi
push eax
lea eax, [ebp + 0x30]
push eax
call fcn.0043ed9c
push eax
lea ecx, [ebp + 0x48]
call fcn.0042623d
push ebx
push 1
lea ecx, [ebp + 0x30]
call fcn.004267c2
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.005a0443
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x5a0248
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x30]
call fcn.0040d4cf
lea eax, [ebp + 0x48]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.0043edf3
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x5a026e
mov eax, dword [eax]
push eax
lea ecx, [ebp + 0x18]
call fcn.0040d4cf
lea eax, [ebp + 0x30]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00437bf2
mov edi, eax
lea eax, [ebp + 0x18]
mov byte [ebp - 4], 5
push eax
lea eax, [ebp]
push eax
call fcn.00437bf2
mov ecx, eax
cmp dword [edi + 0x14], 0x10
mov byte [ebp - 4], 6
jb 0x5a02a9
mov edi, dword [edi]
cmp dword [ecx + 0x14], 0x10
jb 0x5a02b1
mov ecx, dword [ecx]
movzx eax, byte [esi + 0x35]
push edi
push eax
push dword [esi + 0x38]
movzx eax, byte [esi + 0x34]
push eax
push dword [esi + 0x30]
push ecx
push str._path_:__s___version_:__d___blacklisted_:__d___crash_count_:__d___opt_out_:__d___running_:__s_
push dword [ebp + 0x70]
call fcn.004638c2
add esp, 0x20
lea ecx, [ebp]
push ebx
push 1
call fcn.0040daff
push ebx
push 1
lea ecx, [ebp - 0x24]
call fcn.0040daff
push ebx
push 1
lea ecx, [ebp + 0x18]
call fcn.0040daff
push ebx
push 1
lea ecx, [ebp - 0x3c]
call fcn.0040daff
push ebx
push 1
lea ecx, [ebp + 0x30]
call fcn.0040daff
push ebx
push 1
lea ecx, [ebp - 0x54]
call fcn.0040daff
push ebx
push 1
lea ecx, [ebp + 0x48]
call fcn.004267c2
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x70]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x68]
pop ebp
ret 4
Function at 0x5a18d3
Capabilities:
Delete file

Disassembly:
mov eax, 0x6a70e9
call fcn.006375a8
sub esp, 0x20
push esi
push edi
mov edi, ecx
mov byte [ebp - 0xd], 1
call fcn.00475cf1
and dword [ebp - 4], 0
lea eax, [edi + 0x44]
mov esi, dword [eax]
cmp esi, dword [edi + 0x48]
je 0x5a198a
mov ecx, dword [ebp + 8]
and ecx, 0x1ffeffff
mov dword [ebp + 8], ecx
push ebx
mov edx, dword [esi]
mov eax, dword [edx + 0x30]
and eax, 0x1ffeffff
sub eax, ecx
test eax, eax
jle 0x5a1981
lea eax, [ebp - 0x2c]
mov ecx, edx
push eax
call fcn.005a014d
push eax
mov byte [ebp - 4], 1
call fcn.0045f4a7
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0
mov bl, al
call fcn.004267c2
test bl, bl
je 0x5a196d
mov ecx, dword [esi]
lea eax, [ebp - 0x2c]
push eax
call fcn.005a014d
cmp dword [eax + 0x14], 8
jb 0x5a195a
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.004267c2
push esi
lea eax, [ebp - 0x14]
push eax
lea ecx, [edi + 0x44]
call fcn.004f42f0
mov ecx, dword [ebp + 8]
mov esi, dword [eax]
jmp 0x5a1984
add esi, 4
cmp esi, dword [edi + 0x48]
jne 0x5a190c
pop ebx
mov ecx, edi
call fcn.005a259c
mov dword [ebp - 4], 2
call fcn.00475d32
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x5a19b1
Capabilities:
Delete file

Disassembly:
mov eax, 0x6ab3b7
call fcn.006375a8
mov eax, dword [ebp + 8]
sub esp, 0x18
push edi
mov edi, ecx
test eax, eax
jne 0x5a19cc
xor al, al
jmp 0x5a19f5
push esi
mov esi, dword [edi + 0x44]
cmp esi, dword [edi + 0x48]
je 0x5a19f2
mov ecx, dword [eax + 0x30]
mov edx, 0x1ffeffff
and ecx, edx
mov eax, dword [esi]
mov eax, dword [eax + 0x30]
and eax, edx
sub eax, ecx
je 0x5a1a06
add esi, 4
cmp esi, dword [edi + 0x48]
jne 0x5a19df
xor al, al
pop esi
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.005a014d
and dword [ebp - 4], 0
push eax
call fcn.0045f4a7
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
push 0
push 1
mov bl, al
call fcn.004267c2
test bl, bl
pop ebx
je 0x5a1a59
mov ecx, dword [esi]
lea eax, [ebp - 0x24]
push eax
call fcn.005a014d
cmp dword [eax + 0x14], 8
jb 0x5a1a46
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push 0
push 1
lea ecx, [ebp - 0x24]
call fcn.004267c2
push esi
lea ecx, [ebp + 8]
push ecx
lea ecx, [edi + 0x44]
call fcn.004f42f0
mov ecx, edi
call fcn.005a259c
mov al, 1
jmp 0x5a19f4
Function at 0x5a7df5
Capabilities:
Read file on windows

Disassembly:
push ebp
sub esp, 0x3c
mov eax, 0x6a76eb
call fcn.006375a8
sub esp, 0x58
xor eax, eax
push ebx
push esi
push edi
push 8
pop ecx
xor esi, esi
lea edi, [ebp]
push esi
rep stosd dword es:[edi], eax
push 0x80
push 3
lea edi, [ebp + 0x20]
stosd dword es:[edi], eax
push esi
push 3
push SysReAllocString
push dword [ebp + 0x48]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
or edi, 0xffffffff
cmp ebx, edi
je 0x5a7faf
push esi
lea eax, [ebp + 0x48]
push eax
push 0x20
lea eax, [ebp]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x5a7fa8
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x2c], esi
cmp dword [ebp + 8], esi
jbe 0x5a7fa6
push 0
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
add dword [ebp + 0x38], 0xc
lea eax, [ebp + 0x48]
push 0
push eax
push 0xc
lea eax, [ebp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x5a7fa8
cmp dword [ebp + 0x20], 5
jne 0x5a7f6a
xor esi, esi
push esi
push esi
push dword [ebp + 0x28]
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push esi
lea eax, [ebp + 0x48]
push eax
push 4
lea eax, [ebp + 0x3c]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x5a7fa8
mov eax, dword [ebp + 0x3c]
shl eax, 4
push eax
call fcn.0045e489
mov esi, eax
lea eax, [ebp + 0x48]
push 0
push eax
mov eax, dword [ebp + 0x3c]
shl eax, 4
push eax
push esi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x5a7f94
mov ecx, dword [ebp + 0x3c]
xor edx, edx
mov dword [ebp + 0x34], edx
test ecx, ecx
je 0x5a7f51
lea eax, [esi + 0xc]
mov dword [ebp + 0x30], eax
cmp dword [eax - 4], 0x58
jb 0x5a7f43
push 0
push 0
push dword [eax]
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 0
lea eax, [ebp + 0x48]
push eax
push 0x58
lea eax, [ebp - 0x64]
push eax
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x5a7f87
cmp dword [ebp - 0x64], 0x464e4956
je 0x5a7f7b
mov ecx, dword [ebp + 0x3c]
mov eax, dword [ebp + 0x30]
mov edx, dword [ebp + 0x34]
inc edx
add eax, 0x10
mov dword [ebp + 0x34], edx
mov dword [ebp + 0x30], eax
cmp edx, ecx
jb 0x5a7f07
mov dword [ebp - 4], 3
test esi, esi
je 0x5a7f64
push 1
push esi
call fcn.0045e47c
mov esi, dword [ebp + 0x2c]
mov dword [ebp - 4], edi
inc esi
mov dword [ebp + 0x2c], esi
cmp esi, dword [ebp + 8]
jae 0x5a7fa6
mov eax, dword [ebp + 0x38]
jmp 0x5a7e6d
mov edi, dword [ebp - 0x58]
mov dword [ebp - 4], 2
jmp 0x5a7f98
xor eax, eax
inc eax
mov dword [ebp - 4], eax
test esi, esi
je 0x5a7fa8
push eax
jmp 0x5a7f9e
and dword [ebp - 4], 0
test esi, esi
je 0x5a7fa8
push 1
push esi
call fcn.0045e47c
jmp 0x5a7fa8
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x40]
pop ebp
ret 4
Function at 0x5b1a77
Capabilities:
Get common file path

Disassembly:
mov eax, 0x6a776a
call fcn.006375a8
sub esp, 0x254
push esi
push edi
push 1
push 0x1a
lea eax, [ebp - 0x260]
xor edi, edi
push eax
push edi
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0047ae8a
mov esi, 0x6bdb00
mov dword [ebp - 4], edi
push esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00426f58
push str.utorrent
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push eax
call fcn.00426f58
push esi
push eax
push dword [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00426f58
push edi
push 1
lea ecx, [ebp - 0x28]
call fcn.0040daff
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.0040daff
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.0040daff
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x5b2d9f
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x7d4074]
test eax, eax
je 0x5b2db9
cmp dword [eax + 0x18], 0
je 0x5b2db9
push 0
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
ret
Function at 0x5b8c2f
Capabilities:
Hide graphical window

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
test edi, edi
je 0x5b8cee
cmp edi, dword [esi + 0x1fc]
je 0x5b8cee
mov ecx, dword [esi + 0x1dc]
xor eax, eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
cmp edi, ecx
push 0
sete al
push eax
push 0x8098
push ecx
call ebp
mov ecx, dword [esi + 0x1e0]
xor eax, eax
cmp edi, ecx
push 0
sete al
push eax
push 0x809a
push ecx
call ebp
mov edx, dword [esi + 0x1fc]
cmp edx, dword [esi + 0x200]
jne 0x5b8ca6
mov ecx, dword [esi + 0x190]
test ecx, ecx
je 0x5b8ca6
cmp dword [ecx + 0x18], edi
je 0x5b8ca6
call fcn.0068cbfb
jmp 0x5b8cde
mov eax, dword [esi + 0x1d8]
cmp edx, eax
jne 0x5b8cd0
cmp edi, eax
je 0x5b8cd0
call fcn.005ecfdb
test al, al
je 0x5b8cd0
push 0
push 0
push 0x8077
push dword [esi + 0x1d8]
call ebp
jmp 0x5b8cde
push 0
push dword [esi + 0x1fc]
call dword [sym.imp.USER32.dll_ShowWindow]
push 5
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [esi + 0x1fc], edi
pop ebp
pop edi
pop esi
ret 4
Function at 0x5b96da
Capabilities:
Check internet connectivity via wininet

Disassembly:
mov eax, 0x6a8b5c
call fcn.006375a8
sub esp, 0x50
lea eax, [ebp - 0x10]
push ebx
push esi
xor ebx, ebx
mov esi, ecx
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x5b980d
call fcn.005a42bf
test al, al
jne 0x5b980d
call fcn.005d56b8
cmp eax, 1
je 0x5b980d
cmp byte [0x7d30fd], bl
jne 0x5b980d
cmp byte [0x7d424d], bl
je 0x5b973c
call fcn.005b6146
test al, al
je 0x5b980d
cmp byte [0x7d30fc], bl
je 0x5b980d
cmp dword [0x7d3110], ebx
je 0x5b980d
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
push str.action
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.0040d4cf
push ebx
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push 0x7d3100
call fcn.0040da7b
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.00480a95
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040d122
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.0040daff
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.0040daff
push str.BIGADS
lea ecx, [ebp - 0x44]
call fcn.0040d4cf
push ebx
push ebx
push ebx
lea eax, [ebp - 0x44]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x30
call fcn.00485ab0
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
call fcn.0040daff
push 0x1dd
push 0x350
push 0x80e9
mov ecx, esi
call fcn.005b31a4
push 0
push 1
lea ecx, [ebp - 0x2c]
mov bl, al
call fcn.0040daff
mov al, bl
jmp 0x5b980f
xor al, al
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x5ba652
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x190]
call fcn.0068cc58
mov eax, dword [esi + 0x1fc]
cmp eax, dword [esi + 0x200]
je 0x5ba683
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [esi + 0x200]
mov dword [esi + 0x1fc], eax
pop esi
ret

Function at 0x5bb071
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x7d4078]
test eax, eax
je 0x5bb09c
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x5bb09c
mov ecx, dword [0x7d4078]
push 0x6b6e68
call fcn.0068c515
jmp fcn.005b2d62
ret