joyce8/EMBER2024-capa huggingface dataset:
Function at 0x539590
Capabilities:
Enumerate files on windows

Disassembly:
push 0x628
mov eax, 0x56703a
call fcn.004cd176
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push esi
mov dword [ebp - 0x634], eax
call fcn.00505376
test al, al
jne 0x5395dc
push esi
push str.GetFiles:_search_path__s_does_not_exist
push 0x22
lea ecx, [ebp - 0x630]
call fcn.00538da3
push 0x5d6094
lea eax, [ebp - 0x630]
push eax
call fcn.004cea74
push dword [ebp - 0x634]
push edi
push dword [edi + 4]
push dword [edi]
call fcn.00412174
mov eax, dword [edi]
xor ecx, ecx
mov dword [edi + 4], eax
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
cmp eax, esi
je 0x539619
push 0xffffffffffffffff
push ecx
push esi
mov ecx, eax
call fcn.0040799b
push 0x56d030
lea ecx, [ebp - 0x40]
call fcn.00406337
push 1
push eax
push esi
mov byte [ebp - 4], 1
call fcn.00406e2b
mov bl, al
mov byte [ebp - 4], 0
push 0
neg bl
lea ecx, [ebp - 0x40]
push 1
sbb bl, bl
call fcn.0040779d
add bl, 1
je 0x53967c
push 0x56d030
lea ecx, [ebp - 0x40]
call fcn.00406337
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.004077ef
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040779d
push 0xffffffffffffffff
push 0
push dword [ebp - 0x634]
lea ecx, [ebp - 0x28]
call fcn.004077ef
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x2a8]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [ebp - 0x634], ebx
cmp ebx, 0xffffffff
jne 0x5396e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
je 0x5397bf
cmp eax, 2
je 0x5397bf
push str.GetFiles:_FindFirstFile_failed_with_unexpected_error
push eax
push 0xf
lea ecx, [ebp - 0x630]
call fcn.00536ba5
jmp 0x5395cb
test byte [ebp - 0x2a8], 0x10
jne 0x5397a2
push esi
lea ecx, [ebp - 0x40]
call fcn.004062e4
push 0x56d030
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.00406337
push 1
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 4
push eax
call fcn.00406e2b
mov bl, al
mov byte [ebp - 4], 3
push 0
neg bl
lea ecx, [ebp - 0x58]
push 1
sbb bl, bl
call fcn.0040779d
add bl, 1
je 0x539764
push 0x56d030
lea ecx, [ebp - 0x58]
call fcn.00406337
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.004077ef
push 0
push 1
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 3
call fcn.0040779d
lea eax, [ebp - 0x27c]
push eax
call fcn.00407e75
pop ecx
push eax
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004078f8
lea eax, [ebp - 0x40]
mov ecx, edi
push eax
call fcn.0051b459
push 0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.0040779d
mov ebx, dword [ebp - 0x634]
lea eax, [ebp - 0x2a8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x5396e4
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040779d
call fcn.004cd128
ret 0xc
Function at 0x539943
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x58]
push 0x3c
xor ebx, ebx
push ebx
push eax
call fcn.004d19ad
add esp, 0xc
mov dword [ebp - 0x58], 0x3c
lea ecx, [ebp - 0x1c]
push esi
call fcn.004062e4
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x58]
push ecx
push ebx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push ebx
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
je 0x5399a9
mov eax, dword [ebp - 0x4c]
push 3
pop esi
sub eax, esi
je 0x5399cf
sub eax, 1
je 0x5399ca
sub eax, 1
je 0x5399ab
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.0040779d
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd104
mov esp, ebp
pop ebp
ret 4
push 2
pop esi
jmp 0x5399ab
xor esi, esi
inc esi
jmp 0x5399ab

Function at 0x53df11
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x390], edi
and dword [esi + 0x10], 0
cmp dword [esi + 0x14], 8
jb 0x53df40
mov eax, dword [esi]
jmp 0x53df42
mov eax, esi
xor ecx, ecx
push ecx
mov word [eax], cx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
test eax, eax
jne 0x53df65
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x53dfac
jmp 0x53dfbe
jle 0x53dfac
push 0
push eax
mov ecx, esi
call fcn.00409232
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x53df7c
mov esi, dword [esi]
inc eax
push eax
push esi
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jne 0x53dfac
lea eax, [ebp - 0x390]
push eax
push str.::GetWindowTextW___failed_to_get_window_title_for_window_handle:__d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.0053d044
jmp 0x53dfd8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004cd104
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x390]
push ecx
push str.::GetWindowTextLength___failed_to_get_the_length_of_window_title_for_window_handle:__d
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.0053d270
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3
Function at 0x53dfea
Capabilities:
Enumerate process modules

Disassembly:
push 0x3a0
mov eax, 0x56765c
call fcn.004cd176
mov ebx, dword [ebp + 8]
mov ecx, ebx
call fcn.00431c0c
xor eax, eax
mov dword [ebp - 0x39c], 0x1000
mov esi, 0x400
mov dword [ebp - 0x3a8], eax
mov dword [ebp - 0x3a4], eax
mov dword [ebp - 0x3a0], eax
mov dword [ebp - 4], eax
push esi
lea ecx, [ebp - 0x3a8]
call fcn.0053e7c5
mov ecx, dword [ebp - 0x3a8]
lea eax, [ebp - 0x39c]
mov edi, dword [ebp - 0x3a4]
sub edi, ecx
push eax
sar edi, 2
mov eax, edi
shl eax, 2
push eax
push ecx
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
je 0x53e0a5
mov esi, dword [ebp - 0x39c]
shr esi, 2
cmp edi, esi
jb 0x53e029
test esi, esi
je 0x53e092
mov edi, dword [ebp - 0x3a8]
dec esi
mov ecx, ebx
mov eax, dword [edi + esi*4]
mov dword [ebp - 0x3ac], eax
lea eax, [ebp - 0x3ac]
push eax
push dword [ebx]
call fcn.0053da1c
test esi, esi
jne 0x53e074
lea ecx, [ebp - 0x3a8]
call fcn.00431a9d
call fcn.004cd128
ret 4
push str.::EnumProcesses___failed_to_enumerate_the_list_of_process_current_running
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0xf
lea ecx, [ebp - 0x398]
call fcn.0053d0d5
push 0x5d6094
lea eax, [ebp - 0x398]
push eax
call fcn.004cea74
int3
Function at 0x53e178
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d0
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
mov byte [ebp - 0x390], al
mov eax, dword [ebp + 0x14]
push edi
mov edi, dword [ebp + 0xc]
cmp dword [esi + 4], 0xffffffff
mov dword [ebp - 0x394], eax
je 0x53e1bb
call fcn.0053e75b
test al, al
je 0x53e2b3
lea eax, [ebp - 0x390]
push eax
push edi
push ebx
push str.ShellExec:__s__s_admin_d
push 3
call fcn.0053d954
push 0x3c
lea eax, [ebp - 0x3d0]
push 0
push eax
call fcn.004d19ad
mov eax, dword [ebp - 0x394]
xor ecx, ecx
add esp, 0xc
mov dword [ebp - 0x3c8], eax
cmp byte [ebp - 0x390], cl
mov eax, str.runas
mov dword [ebp - 0x3d0], 0x3c
cmove eax, ecx
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x3c4], eax
jb 0x53e219
mov eax, dword [ebx]
jmp 0x53e21b
mov eax, ebx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x3c0], eax
jb 0x53e22b
mov eax, dword [edi]
jmp 0x53e22d
mov eax, edi
xor ecx, ecx
mov dword [ebp - 0x3bc], eax
inc ecx
mov dword [ebp - 0x3cc], 0x340
cmp byte [ebp + 0x18], 0
mov eax, 0x8000000
cmovne eax, ecx
mov dword [ebp - 0x3b4], eax
lea eax, [ebp - 0x3d0]
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
jne 0x53e28e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 8], eax
cmp eax, 0x4c7
jne 0x53e277
xor al, al
jmp 0x53e2a0
push edi
push ebx
push str.Failed_to_runas_admin_for_file:__s_arguments:__s
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.0053ce79
jmp 0x53e2c5
mov ecx, dword [ebp - 0x398]
mov al, 1
mov dword [esi + 4], ecx
mov dword [esi + 8], 0x103
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd104
mov esp, ebp
pop ebp
ret 0x14
push str.Attempting_to_start_a_new_process_when_the_process_has_already_been_started
push 0x43
lea ecx, [ebp - 0x38c]
call fcn.00509c53
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3
Function at 0x53f0c5
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x398
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x390], eax
mov ebx, ecx
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x398], eax
mov eax, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 8]
push 8
cmp dword [eax + 0x10], 0
mov dword [ebp - 0x394], ecx
pop ecx
jne 0x53f111
xor eax, eax
jmp 0x53f118
cmp dword [eax + 0x14], ecx
jb 0x53f118
mov eax, dword [eax]
cmp dword [esi + 0x14], ecx
jb 0x53f11f
mov esi, dword [esi]
cmp dword [edx + 0x14], ecx
jb 0x53f126
mov edx, dword [edx]
cmp dword [edi + 0x14], ecx
jb 0x53f12f
mov ecx, dword [edi]
jmp 0x53f131
mov ecx, edi
push 0
push 0
push dword [ebp - 0x394]
push 0
push eax
push esi
push 1
push dword [ebp - 0x398]
push dword [ebp - 0x390]
push 0x20000000
push edx
push ecx
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebx + 4], eax
test eax, eax
je 0x53f176
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd104
mov esp, ebp
pop ebp
ret 0x1c
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
mov dword [ebp - 0x390], eax
lea eax, [ebp - 0x390]
push eax
push str.OService::Install___CreateService_failed__d
push 2
call fcn.0053eb8e
push edi
push str.failed_to_create_service__s
call esi
push eax
push 0xf
lea ecx, [ebp - 0x38c]
call fcn.0053e8ac
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3

Function at 0x53f340
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ecx + 4]
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 3
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ecx, dword [ebp - 4]
dec eax
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004cd104
mov esp, ebp
pop ebp
ret 0x10
Function at 0x53f3c4
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, ecx
push 0
push 0
push dword [edi + 4]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov dword [ebp - 8], eax
test eax, eax
jne 0x53f3fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp eax, 0x420
jne 0x53f408
push str.OService::StartService___Service_instance_already_running
push 2
call fcn.0053ebdc
cmp byte [edi + 0x14], 0
je 0x53f438
push esi
mov esi, dword [edi + 0xc]
jmp 0x53f42a
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push str.OService::StartService___Failed_to_Start_Service_:_ret___d_:_errCode___d
push 2
call fcn.0053ed08
xor al, al
jmp 0x53f43a
add esi, 0xffffffe4
mov ecx, esi
call fcn.0053f3c4
cmp esi, dword [edi + 8]
jne 0x53f420
lea ecx, [edi + 8]
call fcn.0053f8a2
pop esi
mov al, 1
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x53f45f
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x28]
push esi
push edi
push eax
mov esi, ecx
call fcn.0053f221
mov ecx, dword [ebp - 0x24]
mov byte [ebx], 0
cmp ecx, 1
je 0x53f54d
cmp byte [esi + 0x14], 0
mov edi, dword [ebp - 0x10]
je 0x53f4a5
push dword [ebp + 0xc]
mov ecx, esi
call fcn.0053f568
mov ecx, dword [ebp - 0x24]
mov byte [ebx], 1
cmp ecx, 3
je 0x53f4ee
lea eax, [ebp - 0x44]
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x53f4e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x48], eax
cmp eax, 0x426
je 0x53f4e4
lea eax, [ebp - 0x48]
push eax
push str.OService::StopServiceRecursive___Failed_to_control_service_:_errCode___d
push 2
call fcn.0053ecba
xor al, al
jmp 0x53f555
mov al, 1
jmp 0x53f555
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
cmp ecx, 1
je 0x53f54d
push dword [ebp + 0xc]
call fcn.0053f3ab
test al, al
jne 0x53f536
cmp edi, 0x2710
jbe 0x53f512
push 0xa
mov eax, edi
xor edx, edx
pop ecx
div ecx
jmp 0x53f517
mov eax, 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.0053f221
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x10]
cmp ecx, 1
jne 0x53f4f3
jmp 0x53f539
mov ecx, dword [ebp - 0x24]
cmp ecx, 1
je 0x53f54d
push str.OService::StopServiceRecursive___Timed_out_waiting_for_service_to_stop
push 2
call fcn.0053ec70
mov ecx, dword [ebp - 0x24]
xor eax, eax
cmp ecx, 1
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cd104
mov esp, ebp
pop ebp
ret 8
Function at 0x53f568
Capabilities:
Enumerate services

Disassembly:
push 0x68
mov eax, 0x5678c7
call fcn.004cd1e4
mov esi, ecx
mov dword [ebp - 0x40], esi
xor ebx, ebx
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
push str.OService::TryStopDependents___Enumerating_dependent_services
push 2
mov dword [ebp - 4], ebx
call fcn.0053ec26
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push ebx
push ebx
push 1
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x53f5d7
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov dword [ebp - 0x34], eax
cmp eax, 0xea
je 0x53f5e7
lea eax, [ebp - 0x34]
push eax
push str.OService::TryStopDependents___Warning:_failed_to_enumerate_dependent_services_:_errCode___d
push 2
call fcn.0053edfa
lea ecx, [ebp - 0x50]
call fcn.0041193a
call fcn.004cd135
ret 4
push dword [ebp - 0x38]
lea ecx, [ebp - 0x50]
call fcn.0043ccf1
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x3c]
push ecx
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x34], eax
push ecx
push dword [ebp - 0x38]
push eax
push 1
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_EnumDependentServicesW]
test eax, eax
jne 0x53f61a
call edi
mov dword [ebp - 0x34], eax
jmp 0x53f5c7
mov edi, ebx
mov dword [ebp - 0x44], ebx
cmp edi, dword [ebp - 0x3c]
jae 0x53f5d7
push 1
push 0x20000002
lea ecx, [ebp - 0x74]
mov byte [ebp - 0x2d], bl
call fcn.0053eea9
push dword [ebp + 8]
mov byte [ebp - 4], 1
call fcn.0053f3ab
test al, al
je 0x53f663
lea eax, [ebp - 0x3c]
push eax
push str.OService::TryStopDependents___Warning:_timed_out_before_stopping_all_dependent_services
push 2
call fcn.0053edac
lea ecx, [ebp - 0x74]
call fcn.0053efab
jmp 0x53f5d7
imul esi, edi, 0x24
mov byte [ebp - 4], 2
add esi, dword [ebp - 0x34]
push esi
push str.OService::TryStopDependents___Stopping_dependent_service__S
push 2
call fcn.00498dd6
push dword [esi]
lea ecx, [ebp - 0x2c]
call fcn.00406337
push 0x3c
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x74]
call fcn.0053f1d0
mov bl, al
lea ecx, [ebp - 0x2c]
push 0
neg bl
push 1
sbb bl, bl
call fcn.0040779d
lea ecx, [ebp - 0x74]
add bl, 1
je 0x53f6b8
call fcn.0053efab
xor ebx, ebx
mov byte [ebp - 4], bl
jmp 0x53f71e
push dword [ebp + 8]
lea eax, [ebp - 0x2d]
push eax
call fcn.0053f45f
mov eax, dword [ebp - 0x40]
jmp 0x53f6f9
xor ebx, ebx
mov dword [ebp - 4], 1
cmp byte [ebp - 0x2d], bl
je 0x53f713
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [eax + 8]
call fcn.0053f8c5
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.0053efab
inc edi
mov dword [ebp - 0x44], edi
jmp 0x53f61f
Function at 0x53fdad
Capabilities:
Initialize winhttp library

Disassembly:
push 0x3b0
mov eax, 0x567a14
call fcn.004cd176
mov esi, ecx
mov dword [ebp - 0x3b8], esi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3b4], eax
xor eax, eax
mov dword [esi], vtable.RefCounted.0
mov dword [ebp - 0x3bc], esi
mov dword [esi + 4], eax
push eax
push eax
lea ecx, [esi + 0xc]
mov dword [ebp - 4], eax
mov dword [esi], 0x5c8a40
mov word [esi + 8], ax
call fcn.005126d1
and dword [esi + 0x38], 0
lea eax, [esi + 0x3c]
and dword [eax + 0x10], 0
push 7
pop edx
mov dword [eax + 0x14], edx
cmp edx, 8
jb 0x53fe10
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
lea edi, [esi + 0x54]
and dword [edi + 0x10], ecx
mov dword [edi + 0x14], edx
cmp edx, 8
jb 0x53fe27
mov eax, dword [edi]
jmp 0x53fe29
mov eax, edi
xor ecx, ecx
mov word [eax], cx
push dword [ebp - 0x3b4]
lea ecx, [esi + 0x6c]
mov byte [ebp - 4], 3
call fcn.004062e4
lea ecx, [esi + 0x84]
mov byte [ebp - 4], 4
call fcn.0054423b
mov eax, dword [ebp + 0x18]
xor ecx, ecx
mov dword [esi + 0xb0], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0xb4], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xa4], ecx
mov dword [esi + 0xa8], ecx
mov dword [esi + 0xb8], 0x57
mov dword [esi + 0xac], eax
cmp dword [ebx + 0x14], 8
mov byte [ebp - 4], 5
jb 0x53fe8e
mov ebx, dword [ebx]
push ecx
push ecx
push ecx
push ecx
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov dword [esi + 0xa4], eax
test eax, eax
jne 0x53fecd
push str.Failed_to_Open_Win_Http_session
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x79
lea ecx, [ebp - 0x3b0]
call fcn.00407fef
push 0x5d6094
lea eax, [ebp - 0x3b0]
push eax
call fcn.004cea74
push dword [ebp - 0x3b4]
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00540033
push eax
mov ecx, edi
call fcn.004190f4
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040779d
mov eax, esi
call fcn.004cd128
ret 0x14
Function at 0x540566
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x6029bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov edx, ecx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [eax + 0x10], edi
jne 0x54058e
mov eax, edi
jmp 0x540596
cmp dword [eax + 0x14], 8
jb 0x540596
mov eax, dword [eax]
lea ecx, [edx + 0x54]
cmp dword [ecx + 0x14], 8
jb 0x5405a1
mov ecx, dword [ecx]
push edi
push edi
push edi
push edi
push ecx
push eax
push dword [edx + 0xa8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
push eax
mov ecx, esi
call fcn.005414be
mov ecx, esi
call fcn.00541473
test eax, eax
je 0x54061d
push 4
lea eax, [ebp - 0x390]
mov dword [ebp - 0x390], 1
push eax
push 0x4d
mov ecx, esi
call fcn.00541473
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
pop edi
pop esi
test eax, eax
jne 0x54060d
push str.Failed_to_set_the_auto_logon_option
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x8b
lea ecx, [ebp - 0x38c]
call fcn.004945b0
jmp 0x540636
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004cd104
mov esp, ebp
pop ebp
ret 8
push str.Failed_to_open_get_request_for_given_file
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x7c
lea ecx, [ebp - 0x38c]
call fcn.00535e24
push 0x5d6094
lea eax, [ebp - 0x38c]
push eax
call fcn.004cea74
int3
Function at 0x540adc
Capabilities:
Read http header

Disassembly:
push 0x744
mov eax, 0x567b56
call fcn.004cd176
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x73c]
mov esi, dword [ebp + 8]
xor ecx, ecx
push ecx
push eax
push ecx
push ecx
push dword [ebp + 0x10]
mov dword [ebp - 0x750], ecx
push ebx
mov dword [ebp - 0x73c], ecx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x540b87
call edi
cmp eax, 0x7a
je 0x540b87
cmp byte [ebp + 0x14], 0
je 0x540b5e
call edi
mov dword [ebp - 0x740], eax
lea eax, [ebp - 0x740]
push eax
lea eax, [ebp + 0x10]
push eax
push str.Header__d_not_available_in_the_request:_LastError:_0x_x
push 2
call fcn.0053fcbf
and dword [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x540c36
push str.Failed_to_read_the_header_buf_size_from_request_headers
call edi
push eax
push 0x83
lea ecx, [ebp - 0x3b0]
call fcn.00538e32
push 0x5d6094
lea eax, [ebp - 0x3b0]
push eax
call fcn.004cea74
mov eax, dword [ebp - 0x73c]
xor ecx, ecx
mov dword [ebp - 0x740], ecx
mov dword [ebp - 0x74c], ecx
mov dword [ebp - 0x748], ecx
mov dword [ebp - 0x744], ecx
lea ecx, [ebp - 0x740]
push ecx
shr eax, 1
lea ecx, [ebp - 0x74c]
push eax
call fcn.0045f099
xor ecx, ecx
lea eax, [ebp - 0x73c]
push ecx
push eax
push dword [ebp - 0x74c]
mov dword [ebp - 4], ecx
push ecx
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x540c06
push str.Failed_to_read_the_header_id_from_request_headers
call edi
push eax
push 0x83
lea ecx, [ebp - 0x738]
call fcn.00536146
push 0x5d6094
lea eax, [ebp - 0x738]
jmp 0x540b81
push dword [ebp - 0x74c]
lea ecx, [ebp - 0x28]
call fcn.00406337
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004062bf
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.0040779d
lea ecx, [ebp - 0x74c]
call fcn.0041d088
mov eax, esi
call fcn.004cd128
ret 0x10
Function at 0x551099
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x3c0
mov eax, 0x56a268
call fcn.004cd176
mov edi, ecx
cmp dword [edi + 0x20], 0
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x3c8], eax
jne 0x5510df
push str.ORegistryKey.GetValue_failure:_Cannot_get_String_value._The_registry_key_is_closed_or_not_set
push 0x3a
lea ecx, [ebp - 0x3b0]
call fcn.0054e739
push 0x5d6094
lea eax, [ebp - 0x3b0]
push eax
call fcn.004cea74
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x3b8], 7
mov dword [ebp - 0x3b4], 1
jb 0x5510fd
mov eax, dword [esi]
jmp 0x5510ff
mov eax, esi
lea ecx, [ebp - 0x3b4]
xor ebx, ebx
push ecx
push ebx
lea ecx, [ebp - 0x3b8]
push ecx
push ebx
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
cmp ecx, 2
je 0x55123b
cmp dword [ebp - 0x3b8], 7
jne 0x55123b
test ecx, ecx
je 0x551154
push esi
lea eax, [edi + 8]
push eax
push str.ORegistryKey.GetValue_failure:_Cannot_get_registry__s_value__s
push ecx
push 0xf
lea ecx, [ebp - 0x3b0]
call fcn.00505df9
jmp 0x5510ce
mov eax, dword [ebp - 0x3b4]
add eax, 2
mov dword [ebp - 0x3c4], ebx
mov dword [ebp - 0x3b4], eax
mov dword [ebp - 0x3c0], ebx
mov dword [ebp - 0x3bc], ebx
push eax
lea ecx, [ebp - 0x3c4]
mov dword [ebp - 4], ebx
call fcn.0043ccf1
mov ebx, dword [ebp - 0x3c0]
sub ebx, dword [ebp - 0x3c4]
mov ecx, dword [ebp - 0x3c4]
push 0
pop eax
cmove ecx, eax
mov dword [ebp - 4], 1
cmp dword [esi + 0x14], 8
jb 0x5511ad
mov eax, dword [esi]
jmp 0x5511af
mov eax, esi
lea edx, [ebp - 0x3b4]
push edx
push ecx
lea ecx, [ebp - 0x3b8]
push ecx
push 0
push eax
push dword [edi + 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, eax
test ecx, ecx
jne 0x551137
mov edi, dword [ebp - 0x3c8]
xor esi, esi
mov eax, dword [ebp - 0x3c4]
xor ecx, ecx
test ebx, ebx
cmove eax, ecx
lea ecx, [ebp - 0x28]
lea eax, [eax + esi*2]
push eax
call fcn.00406337
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
mov ecx, edi
call fcn.0051b459
mov eax, dword [ebp - 0x18]
lea ecx, [ebp - 0x28]
push 0
inc eax
mov byte [ebp - 4], 1
push 1
add esi, eax
call fcn.0040779d
mov ecx, dword [ebp - 0x3c4]
xor edx, edx
test ebx, ebx
cmove ecx, edx
cmp byte [ecx + esi*2], dl
jne 0x5511dc
lea ecx, [ebp - 0x3c4]
call fcn.0041193a
mov al, 1
jmp 0x55123d
xor al, al
call fcn.004cd128
ret 8