joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4066a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550590
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push esi
push edi
mov eax, dword [0x5a9f00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ebp + 0x18], edi
jne 0x4066fd
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x4066ea
mov eax, dword [ebp + 8]
push eax
call fcn.00425301
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
lea esi, [ebp - 0x20]
mov byte [ebp - 4], 1
call fcn.0041df30
cmp dword [ebp - 0x14], edi
jne 0x406735
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x406735
lea ecx, [ebp - 0x18]
push ecx
call eax
cmp eax, edi
je 0x406735
mov dword [ebp - 0x14], 1
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x24], edi
je 0x40674f
cmp dword [ebp + 0x1c], 0x10
jae 0x406746
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryA]
jmp 0x40675f
cmp dword [ebp + 0x1c], 0x10
jae 0x406758
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
mov esi, eax
cmp dword [ebp - 0x14], edi
je 0x40677a
mov eax, dword [ebp - 0x1c]
cmp eax, edi
je 0x40677a
mov edx, dword [ebp - 0x18]
push edx
call eax
cmp eax, edi
je 0x40677a
mov dword [ebp - 0x14], edi
mov eax, dword [ebp - 0x10]
cmp eax, edi
je 0x40678b
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x10], edi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x4067a4
mov eax, dword [ebp + 8]
push eax
call fcn.00425301
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x408200
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5512b0
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
mov eax, dword [0x5a9f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor edi, edi
push edi
sub esp, 0x1c
mov esi, ecx
mov ecx, esp
mov dword [ebp - 0x68], esp
push 0xffffffffffffffff
push edi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
push esi
mov ebx, edx
mov byte [ecx], 0
call fcn.00403c50
call fcn.004066a0
add esp, 0x20
cmp eax, edi
je 0x408334
push 0x5816b0
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.00409720
add esp, 0xc
mov ecx, eax
mov eax, ebx
lea ebx, [ebp - 0x2c]
mov dword [ebp - 4], edi
call fcn.00409440
mov esi, 0x10
mov byte [ebp - 4], 2
cmp dword [ebp - 0x34], esi
jb 0x40829e
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00425301
add esp, 4
push 0x44
xor edi, edi
lea edx, [ebp - 0xc0]
push edi
push edx
call fcn.00528f50
xor eax, eax
mov word [ebp - 0x90], ax
mov eax, 0xc
mov ecx, 1
add esp, 0xc
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0xc0], 0x44
mov dword [ebp - 0x94], ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], ecx
cmp dword [ebp - 0x18], esi
jae 0x4082f2
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x78]
push ecx
lea edx, [ebp - 0xc0]
push edx
push edi
push edi
push 0x4000000
push edi
lea ecx, [ebp - 0x64]
push ecx
lea edx, [ebp - 0x58]
push edx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [ebp - 0x70]
cmp eax, edi
jne 0x40833b
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], esi
jb 0x408334
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00425301
add esp, 4
xor eax, eax
jmp 0x4083c5
push eax
push edi
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
jne 0x408361
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.00402cf0
xor eax, eax
jmp 0x4083c5
or ebx, 0xffffffff
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, edi
jne 0x4083a3
lea ecx, [ebp - 0x4c]
push ecx
push esi
mov dword [ebp - 0x4c], edi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push esi
cmp eax, edi
jne 0x4083a4
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00402cf0
xor eax, eax
jmp 0x4083c5
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00402cf0
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523d1e
mov esp, ebp
pop ebp
ret
Function at 0x408420
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x5a9f00]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
mov esi, ecx
cmp dword [eax + 0x10], ebx
jne 0x408461
push 0xc
push 0x581710
mov ecx, edi
call fcn.00404400
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00523d1e
mov esp, ebp
pop ebp
ret
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
call fcn.00402d20
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x40c], eax
cmp eax, 0xffffffff
jne 0x4084e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3ff
mov esi, eax
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.00528f50
push esi
lea ecx, [ebp - 0x404]
push 0x581720
push ecx
call fcn.005242f0
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4084c5
sub eax, edx
push eax
lea edx, [ebp - 0x404]
push edx
mov ecx, edi
call fcn.00404400
mov esi, ebx
jmp 0x408569
mov edx, dword [ebp + 0xc]
push ebx
lea ecx, [ebp - 0x410]
push ecx
push edx
push esi
push eax
mov dword [ebp - 0x410], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x40855c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x3ff
mov esi, eax
lea eax, [ebp - 0x403]
push ebx
push eax
mov byte [ebp - 0x404], bl
call fcn.00528f50
push esi
lea ecx, [ebp - 0x404]
push 0x581738
push ecx
call fcn.005242f0
lea eax, [ebp - 0x404]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x408540
sub eax, edx
push eax
lea edx, [ebp - 0x404]
push edx
mov ecx, edi
call fcn.00404400
mov esi, ebx
jmp 0x408561
mov esi, 1
cmp dword [ebp - 0x40c], ebx
je 0x408576
mov eax, dword [ebp - 0x40c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523d1e
mov esp, ebp
pop ebp
ret
Function at 0x4086f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551e37
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a9f00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [edi], 0x581778
mov dword [edi + 0x10], 0x581780
mov dword [edi + 0x70], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
lea esi, [edi + 0x18]
push esi
mov dword [ebp - 4], ebx
push edi
mov dword [ebp - 0x10], 1
call fcn.00408d60
mov dword [ebp - 4], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_fstream_char__struct_std::char_traits_char__.0
call fcn.00404660
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov edx, dword [0x5b20ec]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40b4c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
mov esi, eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
je 0x40b4e1
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 4
test esi, esi
je 0x40b502
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40b502
test al, 0x10
je 0x40b502
mov ecx, dword [edi + 4]
mov al, byte [esi]
mov byte [ecx], al
inc ecx
inc esi
test al, al
jne 0x40b4f8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x20]
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0x58178c
mov dword [ebp - 0x14], 0x40b440
mov dword [ebp - 0x10], edi
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0x50
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderA]
mov esi, eax
test esi, esi
je 0x40b576
mov ecx, dword [edi + 4]
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
mov eax, dword [ebp - 8]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x14]
call eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x14]
push 0
push eax
call edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40d5b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40d5cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x40d602
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x40d5fe
jmp 0x40d5f0
cmp esi, eax
jae 0x40d602
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x40d5f0
cmp esi, eax
jb 0x40d609
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x410640
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x5a9f00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.TrayNotifyWnd
push 0
push eax
call esi
push 0
push str.SysPager
mov edi, eax
push 0
push edi
call esi
push 0
push str.ToolbarWindow32
push 0
test eax, eax
je 0x410690
push eax
jmp 0x410691
push edi
call esi
mov ebx, eax
test ebx, ebx
je 0x4106e5
lea eax, [ebp - 0x14]
push eax
push ebx
call dword [sym.imp.USER32.dll_GetWindowRect]
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 0x14]
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov esi, 1
cmp edi, esi
jle 0x4106e5
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x18], eax
jmp 0x4106c6
mov eax, dword [ebp - 0x18]
movzx ecx, ax
movzx edx, si
shl ecx, 0x10
or ecx, edx
push ecx
push 0
push 0x200
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
inc esi
cmp esi, edi
jl 0x4106c3
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00523d1e
mov esp, ebp
pop ebp
ret
Function at 0x4139b0
Capabilities:
Access firewall policy via inetfwpolicy2
Access firewall rule properties via inetfwrule

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x5a9f00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push 2
push ebx
mov dword [ebp - 0x814], ebx
mov dword [ebp - 0x80c], ebx
mov dword [ebp - 0x810], ebx
mov dword [ebp - 0x808], ebx
call dword [sym.imp.ole32.dll_CoInitializeEx]
mov dword [ebp - 0x818], eax
cmp eax, 0x80010106
je 0x4139fc
cmp eax, ebx
jl 0x413b1f
push edi
mov edi, dword [sym.imp.ole32.dll_CoCreateInstance]
lea eax, [ebp - 0x80c]
push eax
push 0x5826e4
push 1
push ebx
push 0x5826d4
call edi
cmp eax, ebx
jge 0x413a30
push eax
push str.CoCreateInstance_for_INetFwPolicy2_failed:_0x_08lx_n
call fcn.00527dd0
add esp, 8
jmp 0x413b1e
mov eax, dword [ebp - 0x80c]
mov ecx, dword [eax]
lea edx, [ebp - 0x810]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
js 0x413b1e
lea ecx, [ebp - 0x808]
push ecx
push 0x582704
push 1
push ebx
push 0x5826f4
call edi
test eax, eax
js 0x413b1e
mov eax, dword [ebp - 0x808]
mov edx, dword [eax]
push esi
push eax
mov eax, dword [edx + 0x20]
call eax
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x40]
push 6
push eax
call edx
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x98]
push SysReAllocString
push eax
call edx
mov eax, dword [ebp - 0x808]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x88]
push 0xffffffffffffffff
push eax
call edx
push 0x7fe
lea ecx, [ebp - 0x802]
xor eax, eax
push ebx
push ecx
mov word [ebp - 0x804], ax
call fcn.00528f50
push 0x1a20
push 0x582714
lea edx, [ebp - 0x804]
call fcn.00413b80
mov eax, dword [ebp - 0x808]
mov edx, dword [eax]
mov edx, dword [edx + 0x48]
add esp, 0x14
lea ecx, [ebp - 0x804]
push ecx
push eax
call edx
mov eax, dword [ebp - 0x810]
mov edx, dword [ebp - 0x808]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
js 0x413b1e
mov dword [ebp - 0x814], 1
pop edi
mov eax, dword [ebp - 0x808]
cmp eax, ebx
je 0x413b31
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x810]
cmp eax, ebx
je 0x413b43
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x80c]
cmp eax, ebx
je 0x413b55
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
cmp dword [ebp - 0x818], ebx
pop ebx
jl 0x413b64
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x814]
xor ecx, ebp
call fcn.00523d1e
mov esp, ebp
pop ebp
ret
Function at 0x41dc20
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5508e1
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x5a9f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x30], ebx
mov dword [ebp - 4], 2
cmp dword [ebp + 0x1c], ebx
je 0x41ddab
cmp dword [ebp + 0x38], ebx
je 0x41ddab
push 0x2803
call fcn.0052723e
mov edi, eax
add esp, 4
cmp edi, ebx
je 0x41dca8
push 0x2803
push ebx
push edi
call fcn.00528f50
mov eax, dword [ebp - 0x34]
mov edx, 0x10
add esp, 0xc
cmp dword [eax + 0x18], edx
jb 0x41dd04
mov ecx, dword [eax + 4]
jmp 0x41dd07
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x581489
mov ecx, esi
mov byte [esi], bl
call fcn.00404400
mov dword [ebp - 0x30], 1
mov edi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp + 0x20], edi
jb 0x41dce2
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00425301
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x41de06
mov edx, dword [ebp + 0x28]
push edx
jmp 0x41ddfe
lea ecx, [eax + 4]
cmp dword [ebp + 0x20], edx
mov edx, dword [ebp + 0xc]
jae 0x41dd12
lea edx, [ebp + 0xc]
cmp dword [ebp + 0x3c], 0x10
mov eax, dword [ebp + 0x28]
jae 0x41dd1e
lea eax, [ebp + 0x28]
push ecx
push 0x2800
push edi
push 0x581489
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, edi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x41dd44
sub eax, ecx
push eax
push edi
lea ecx, [ebp - 0x2c]
call fcn.00404400
push edi
mov byte [ebp - 4], 3
call fcn.005242b6
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
add esp, 4
lea edi, [ebp - 0x2c]
mov byte [esi], bl
call fcn.00403b10
mov edi, 0x10
mov byte [ebp - 4], 2
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x18], edi
jb 0x41dd99
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00425301
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
jmp 0x41dccd
push ebx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push 0x581489
mov ecx, esi
mov byte [esi], bl
call fcn.00404400
mov edi, 0x10
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 1
cmp dword [ebp + 0x20], edi
jb 0x41dde5
mov eax, dword [ebp + 0xc]
push eax
call fcn.00425301
add esp, 4
mov byte [ebp - 4], bl
mov dword [ebp + 0x20], 0xf
mov dword [ebp + 0x1c], ebx
mov byte [ebp + 0xc], bl
cmp dword [ebp + 0x3c], edi
jb 0x41de06
mov ecx, dword [ebp + 0x28]
push ecx
call fcn.00425301
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523d1e
mov esp, ebp
pop ebp
ret 0x3c
Function at 0x41dff0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5504a8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x5a9f00]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
cmp dword [ebp + 0x18], 0
jne 0x41e050
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41e03a
mov eax, dword [ebp + 8]
push eax
call fcn.00425301
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test eax, eax
jne 0x41e092
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41e03a
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425301
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [ebp + 8]
mov ebx, 0x10
cmp dword [ebp + 0x1c], ebx
jae 0x41e0a2
lea ecx, [ebp + 8]
push 0xf003f
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x41e0e7
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], ebx
jb 0x41e03a
mov edx, dword [ebp + 8]
push edx
call fcn.00425301
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
mov eax, dword [ebp + 0x24]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], ebx
jb 0x41e125
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425301
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20
Function at 0x41e380
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x550478
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x5a9f00]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor esi, esi
cmp dword [ebp + 0x18], esi
jne 0x41e3d2
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41e3cb
mov eax, dword [ebp + 8]
push eax
call fcn.00425301
add esp, 4
xor eax, eax
jmp 0x41e4bb
push 0xf003f
xor eax, eax
push esi
push esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebx, eax
cmp ebx, esi
jne 0x41e416
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41e3cb
mov ecx, dword [ebp + 8]
push ecx
call fcn.00425301
add esp, 4
xor eax, eax
jmp 0x41e4bb
cmp dword [ebp + 0x1c], 0x10
mov eax, dword [ebp + 8]
jae 0x41e422
lea eax, [ebp + 8]
push 0xf003f
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
cmp edi, esi
jne 0x41e452
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41e3cb
mov edx, dword [ebp + 8]
push edx
call fcn.00425301
add esp, 4
xor eax, eax
jmp 0x41e4bb
mov eax, 1
lea ecx, [ebp - 0x40]
push ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
push 2
lea eax, [ebp - 0x2c]
push edi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x34], 3
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x38], esi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov esi, eax
neg esi
sbb esi, esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
neg esi
call edi
push ebx
call edi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x41e4b9
mov edx, dword [ebp + 8]
push edx
call fcn.00425301
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00523d1e
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x420700
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x551508
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5a9f00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push 1
push eax
sub esp, 0x1c
mov dword [ebp - 0x30], esp
xor edi, edi
mov esi, ecx
mov ecx, esp
push edi
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], edi
push 0x581489
mov dword [ebp - 0x34], edi
mov byte [ecx], 0
call fcn.00404400
mov edx, dword [ebp + 8]
mov ecx, ebx
call fcn.0041ff80
cmp eax, edi
je 0x420849
push 0x100002
call fcn.0052723e
mov edi, eax
add esp, 4
test edi, edi
je 0x420849
push 0x100002
push 0
push edi
call fcn.00528f50
push 0x100000
push 0
push edi
mov dword [ebp - 0x30], 0
call fcn.00528f50
mov edx, dword [ebx + 8]
add esp, 0x18
lea ecx, [ebp - 0x30]
push ecx
push 0x100000
push edi
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x420835
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x420835
push eax
push edi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.00404400
push 0
lea eax, [ebp - 0x2c]
push eax
or eax, 0xffffffff
mov dword [ebp - 4], 0
call fcn.004047b0
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x42080d
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00425301
add esp, 4
push 0x100000
push 0
push edi
call fcn.00528f50
mov eax, dword [ebx + 8]
add esp, 0xc
lea edx, [ebp - 0x30]
push edx
push 0x100000
push edi
push eax
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4207bc
push edi
call fcn.005242b6
xor ecx, ecx
add esp, 4
cmp dword [esi + 0x10], ecx
setne cl
mov dword [ebp - 0x34], ecx
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x42086c
push eax
call esi
test eax, eax
jne 0x420865
call edi
mov dword [ebx + 8], 0
mov eax, dword [ebx + 4]
test eax, eax
je 0x420883
push eax
call esi
test eax, eax
jne 0x42087c
call edi
mov dword [ebx + 4], 0
mov eax, dword [ebx]
test eax, eax
je 0x420898
push eax
call esi
test eax, eax
jne 0x420892
call edi
mov dword [ebx], 0
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00523d1e
mov esp, ebp
pop ebp
ret 8