joyce8/EMBER2024-capa huggingface dataset:
Function at 0x452ff8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4531a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453184
mov dl, 1
mov eax, dword [0x419690]
call fcn.00403248
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404034
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453173
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044102c
test al, al
je 0x453166
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x4531b4
lea eax, [ebp - 0x254]
call fcn.00409108
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453166
xor eax, eax
push ebp
push 0x45315f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x4531ec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453148
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042a4
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x453148
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004042a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453166
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453069
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041d9b8
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4531aa
lea eax, [ebp - 0x260]
call fcn.00404034
ret

Function at 0x453ad8
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x479bb8]
cmp byte [eax + 0xa5], 0
jne 0x453b49
cmp dword [0x479bd0], 0
jne 0x453b0a
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x453a94
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x479bd0], eax
cmp dword [0x479bcc], 0
jne 0x453b25
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x479bcc], eax
cmp dword [0x479bd4], 0
jne 0x453b49
push esp
push 0
push 0
push 0x453a38
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x479bd4], eax
pop edx
ret
Function at 0x453c40
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x453c57
add esp, 0xfffffff0
call fcn.00403584
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00421cd0
mov eax, dword [0x478040]
cmp word [eax + 2], 0
jne 0x453c7f
mov eax, dword [0x478040]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455318
mov eax, dword [0x4781ac]
cmp word [eax + 2], 0
jne 0x453c99
mov eax, dword [0x4781ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00455510
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x41902c]
call fcn.00403248
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x41902c]
call fcn.00403248
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x423ea4]
call fcn.00429aec
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x453e20
mov eax, dword [0x477e64]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.00429ebc
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x455ab0
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x477e64]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040ceb8
test eax, eax
je 0x453d8e
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408afc
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cee0
test eax, eax
je 0x453da2
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004042a4
mov eax, dword [0x477c24]
cmp byte [eax], 0
jne 0x453dd6
mov eax, ebx
call fcn.00453f48
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00455c8c
mov eax, ebx
call fcn.00456650
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453e16
call fcn.004035dc
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4541c8
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x479bb8]
cmp dword [eax + 0x30], 0
je 0x454272
cmp dword [ebx + 0x94], 0
jne 0x45426c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454158
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x45426c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x454232
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x45426c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041b638
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454241
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x454dd4
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x454e09
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404124
jmp 0x454e16
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404088
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x455e68
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x455ea9
mov eax, esi
call fcn.0043c6ec
test al, al
je 0x455ea9
mov eax, dword [ebx + 0x84]
call fcn.0043c48c
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x455ea9
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043c48c
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x40419a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor esi, esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40426b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4041ca
xor esi, esi
jmp 0x40426b
cmp eax, 3
je 0x4041db
push 0
push edi
call fcn.00404273
test eax, eax
jne 0x4041c3
movzx eax, word [edi]
mov ecx, edi
push ebx
xor ebx, ebx
test ax, ax
je 0x404258
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x4041f4
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4041ed
mov edi, dword [ebp + 8]
test ebx, ebx
je 0x404258
push dword [ebp + 0xc]
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040419a
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x40426a
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x404254
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp esi, 0xb7
jne 0x404245
xor esi, esi
inc esi
jmp 0x40426a
test esi, esi
jle 0x40426a
movzx esi, si
or esi, 0x80070000
jmp 0x40426a
xor esi, esi
jmp 0x40426a
mov esi, 0x80070003
push esi
push 0x72
push str.c:_agent_work138_s_srclibsdutildirutil.cpp
call fcn.004038f5
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x404273
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 8]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x404297
test al, 0x10
je 0x404297
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x404294
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x409b90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push esi
push edi
mov edi, dword [ebp + 8]
push 0
push eax
push dword [edi + 0x14]
push dword [ebp + 0xc]
call fcn.004073aa
mov esi, eax
test esi, esi
jns 0x409bbb
push str.Failed_to_format_variable_string.
jmp 0x409c35
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, eax
cmp edx, 0xffffffff
jne 0x409bf6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x409be0
movzx esi, si
or esi, 0x80070000
cmp esi, 0x80070002
je 0x409bf0
cmp esi, 0x80070003
jne 0x409bf2
xor esi, esi
xor eax, eax
jmp 0x409c00
xor eax, eax
xor ecx, ecx
test dl, 0x10
je 0x409c02
inc eax
xor ecx, ecx
test esi, esi
jns 0x409c1b
push dword [ebp - 4]
push dword [edi]
push str.Failed_while_searching_directory_search:__ls__for_path:__ls
push esi
call fcn.00440657
add esp, 0x10
jmp 0x409c3d
push 0
push ecx
push eax
push dword [edi + 4]
push dword [ebp + 0xc]
call fcn.00408363
mov esi, eax
test esi, esi
jns 0x409c3d
push str.Failed_to_set_variable.
push esi
call fcn.00440657
pop ecx
pop ecx
push dword [ebp - 4]
call fcn.004028a8
pop edi
mov eax, esi
pop esi
leave
ret 8
Function at 0x40b2c8
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, eax
test esi, esi
jne 0x40b31c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x40b2f3
movzx edi, di
or edi, 0x80070000
test edi, edi
js 0x40b2fa
mov edi, 0x80004005
push edi
push 0x140
push str.c:_agent_work138_s_src_burnengine_section.cpp
call fcn.004038f5
push str.Failed_to_get_module_handle_to_process.
push edi
call fcn.00440657
pop ecx
pop ecx
jmp 0x40b469
mov eax, 0x5a4d
cmp ax, word [esi]
je 0x40b345
mov esi, 0x8007000d
push esi
push 0x14a
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Failed_to_find_valid_DOS_image_header_in_buffer.
push esi
jmp 0x40b310
mov ecx, dword [esi + 0x3c]
cmp dword [ecx + esi], 0x4550
je 0x40b36f
mov esi, 0x8007000d
push esi
push 0x155
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Failed_to_find_valid_NT_image_header_in_buffer.
jmp 0x40b342
movzx eax, word [ecx + esi + 0x14]
push ebx
add eax, ecx
lea ebx, [esi + 0x18]
push 8
add ebx, eax
push 0x44f1e4
push ebx
call fcn.0042f9d3
add esp, 0xc
test eax, eax
je 0x40b3b4
mov eax, dword [esi + 0x3c]
movzx ecx, word [eax + esi + 6]
xor eax, eax
inc eax
cmp eax, ecx
jae 0x40b3db
add ebx, 0x28
inc eax
cmp dword [ebx], 0x7869772e
jne 0x40b39b
cmp dword [ebx + 4], 0x6e727562
jne 0x40b39b
cmp dword [ebx + 0x10], 0x34
jae 0x40b3f9
mov esi, 0x8007000d
push esi
push 0x17a
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push dword [ebx + 0x10]
push str.Failed_to_read_section_info__data_to_short:__u
jmp 0x40b423
mov esi, 0x8007000d
push esi
push 0x16e
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Failed_to_find_Burn_section.
jmp 0x40b460
mov ebx, dword [ebx + 0xc]
add ebx, esi
cmp dword [ebx + 4], 2
je 0x40b42e
mov esi, 0x8007000d
push esi
push 0x184
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push dword [ebx + 4]
push str.Failed_to_read_section_info__unsupported_version:__08x
push esi
call fcn.00440657
add esp, 0xc
jmp 0x40b468
mov edx, dword [ebp + 8]
mov ecx, edi
mov eax, dword [edx + ecx*4]
cmp eax, dword [ebx + ecx*4 + 8]
jne 0x40b444
inc ecx
cmp ecx, 4
jne 0x40b433
jmp 0x40b468
mov esi, 0x8007000d
push esi
push 0x18a
push str.c:_agent_work138_s_src_burnengine_section.cpp
mov edi, esi
call fcn.004038f5
push str.Bundle_guid_didnt_match_the_guid_in_the_PE_Header_in_memory.
push esi
call fcn.00440657
pop ecx
pop ecx
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x42f9d3
Capabilities:
Encode data using xor

Disassembly:
inc esi
test eax, 0x819e010c
jmp 0x42f9ed
sahf
xor byte [esi - 0x1c], dh
or al, 0x52
add byte [eax + 0x65], bh
add eax, 0x1b08266a
sbb al, 0x72
invalid

Function at 0x440714
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [str.unknown]
mov eax, 0x104
push edi
push eax
mov dword [ebp - 0x424], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x420], ebx
push eax
push ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, 0x208
test eax, eax
jne 0x440778
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0042f710
add esp, 0xc
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00444ea2
test eax, eax
jns 0x4407a2
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x4407c8
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
sub edi, 1
jne 0x4407c0
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.00448ab6
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.00440b3e
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x420]
movzx eax, cx
push eax
shr ecx, 0x10
lea eax, [ebp - 0x20c]
push ecx
push eax
push str.Executable:__ls_v_d._d._d._d
push edi
call fcn.00440b3e
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.00440b3e
mov eax, dword [0x46b878]
add esp, 0x34
sub eax, ebx
je 0x440869
sub eax, 1
je 0x440861
sub eax, 1
je 0x440859
sub eax, 1
je 0x440851
sub eax, 1
jne 0x44086f
mov esi, dword [str.debug]
jmp 0x44086f
mov esi, dword [str.verbose]
jmp 0x44086f
mov esi, dword [str.standard]
jmp 0x44086f
mov esi, dword [str.warning]
jmp 0x44086f
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.00440b3e
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x440895
push dword [ebp - 0x418]
call fcn.0040278d
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042de30
leave
ret
Function at 0x440b7c
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor esi, esi
xor edi, edi
and dword [ebp - 4], esi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x46b874]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x440bb8
push edi
push ebx
push 0x46c6e8
call fcn.004024a9
mov esi, eax
test esi, esi
js 0x440c0f
xor esi, esi
jmp 0x440c0f
test eax, eax
je 0x440c0f
push 0
lea edx, [ebp - 4]
sub eax, edi
push edx
push eax
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x440bed
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x440beb
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x440bff
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x440c0f
mov ecx, dword [0x46b874]
jmp 0x440bbc
push esi
push 0x310
push str.c:_agent_work138_s_srclibsdutillogutil.cpp
call fcn.004038f5
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4

Function at 0x443ed2
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x46b008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x14]
xor ebx, ebx
mov word [ebp - 8], 0x500
push eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
call fcn.00444061
cmp dword [ebp - 0x14], ebx
je 0x443f0e
mov dword [esi], 1
jmp 0x443f42
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [esi], eax
test eax, eax
je 0x443f42
push esi
push dword [ebp - 0x10]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x443f42
mov dword [esi], ebx
cmp dword [ebp - 0x10], 0
pop esi
pop ebx
je 0x443f52
push dword [ebp - 0x10]
call fcn.0040278d
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0042de30
leave
ret 4
Function at 0x44445c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, dword [ebp + 0xc]
xor esi, esi
test ebx, ebx
sete al
push eax
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x444543
call dword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
jne 0x4444a2
cmp eax, 0x50
je 0x44449a
cmp eax, 0xb7
jne 0x4444a2
xor esi, esi
inc esi
jmp 0x444543
cmp eax, 3
jne 0x444532
movzx eax, word [edi]
mov ebx, esi
mov ecx, edi
test ax, ax
je 0x44452b
push 0x5c
mov edx, eax
pop edi
cmp dx, di
jne 0x4444c3
mov ebx, ecx
add ecx, 2
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4444bc
mov edi, dword [ebp + 0xc]
test ebx, ebx
je 0x44452b
push esi
xor eax, eax
push edi
mov word [ebx], ax
call fcn.0040419a
mov esi, eax
push 0x5c
pop eax
mov word [ebx], ax
test esi, esi
js 0x444543
push dword [ebp + 0x10]
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x444543
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444517
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444543
push esi
push 0x454
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
jmp 0x444543
mov esi, 0x80070003
jmp 0x444543
test eax, eax
jg 0x44453a
mov esi, eax
jmp 0x444543
movzx esi, ax
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x44462d
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
xor esi, esi
cmp dword [ebp + 0x10], ebx
setne bl
cmp dword [ebp + 0x14], esi
je 0x444644
or ebx, 2
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x444741
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp dword [ebp + 0x10], esi
jne 0x44467c
cmp edi, 0x50
je 0x444674
cmp edi, 0xb7
jne 0x44467c
xor esi, esi
inc esi
jmp 0x444740
cmp edi, 2
jne 0x444695
push esi
push dword [ebp + 8]
call fcn.0044488b
test eax, eax
je 0x444737
push 3
pop edi
cmp edi, 3
jne 0x44472f
mov edi, dword [ebp + 0xc]
mov ecx, esi
mov edx, edi
movzx eax, word [edi]
test ax, ax
je 0x444728
push 0x5c
mov edi, eax
pop esi
cmp di, si
jne 0x4446b9
mov ecx, edx
add edx, 2
movzx eax, word [edx]
mov edi, eax
test ax, ax
jne 0x4446b2
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], ecx
push 0
pop esi
test ecx, ecx
je 0x444728
push esi
xor eax, eax
push edi
mov word [ecx], ax
call fcn.0040419a
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0x5c
pop ecx
mov word [eax], cx
test esi, esi
js 0x444740
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x444740
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x444714
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x444740
push esi
push 0x4d4
push str.c:_agent_work138_s_srclibsdutil_fileutil.cpp
call fcn.004038f5
jmp 0x444740
mov esi, 0x80070003
jmp 0x444740
test edi, edi
jg 0x444737
mov esi, edi
jmp 0x444740
movzx esi, di
or esi, 0x80070000
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x4468bb
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
or dword [ebp - 0xc], 0xffffffff
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push eax
push dword [ebx]
mov dword [ebp - 8], eax
mov edi, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
call fcn.004022c9
mov esi, eax
test esi, esi
js 0x446a23
xor eax, eax
push eax
push eax
push eax
push eax
push str.Burn
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
test edi, edi
jne 0x44694a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x44692e
movzx esi, si
or esi, 0x80070000
test esi, esi
js 0x446935
mov esi, 0x80004005
push esi
push 0x84
push str.c:_agent_work138_s_srclibsdutildlutil.cpp
call fcn.004038f5
jmp 0x446a23
lea eax, [ebp - 4]
push eax
push 0x78
push str.DownloadTimeout
push str.WiXBurn
call fcn.00445c10
mov eax, dword [ebp - 4]
test eax, eax
je 0x446996
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push 2
push edi
call esi
push 4
lea eax, [ebp - 4]
push eax
push 6
push edi
call esi
push 4
lea eax, [ebp - 4]
push eax
push 5
push edi
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.0044610f
mov esi, eax
test esi, esi
js 0x446a23
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x14]
call fcn.004461b8
push dword [ebp + 0x1c]
lea eax, [ebp - 8]
push dword [ebp + 0x18]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
call fcn.00445e6c
mov esi, eax
test esi, esi
js 0x446a14
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x446a14
xor ecx, ecx
cmp word [eax], cx
je 0x446a14
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0xc], 0xffffffff
je 0x446a23
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x446a30
push eax
call fcn.0040278d
test edi, edi
je 0x446a3b
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 8], 0
je 0x446a49
push dword [ebp - 8]
call fcn.0040278d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x18