joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421207
Capabilities:
Copy file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
mov eax, dword [esi + 4]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov edi, 0x4395e8
cmp eax, ebx
je 0x421225
mov ecx, dword [eax]
jmp 0x421232
mov ecx, dword [esi + 8]
cmp ecx, ebx
je 0x421230
mov ecx, dword [ecx]
jmp 0x421232
mov ecx, edi
mov edx, dword [esi + 0xc]
test edx, edx
je 0x42123b
mov edi, dword [edx]
test eax, eax
je 0x42124d
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x42125c
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebp + 8]
push str.copy
push edi
push ecx
push eax
push 2
call fcn.00401607
add esp, 0x18
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call fcn.004349fc
test eax, eax
je 0x4212e0
test byte [ebp - 4], 1
je 0x4212e0
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x4212e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4212af
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x4212ba
mov ebx, 0x80004005
push ebx
push 0x542
push str.apply.cpp
call fcn.0043166e
push dword [ebp + 0xc]
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push ebx
call fcn.0042eef6
add esp, 0xc
jmp 0x421368
push 0
lea edi, [esi + 0x20]
push edi
push esi
push fcn.00420a36
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x421368
cmp dword [edi], ebx
je 0x421325
mov esi, 0x80070642
push esi
push 0x54c
push str.apply.cpp
mov ebx, esi
call fcn.0043166e
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
push esi
jmp 0x421360
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x421339
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x421344
mov ebx, 0x80004005
push ebx
push 0x550
push str.apply.cpp
call fcn.0043166e
push dword [ebp + 0xc]
push dword [ebp + 8]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push ebx
call fcn.0042eef6
add esp, 0x10
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 8
Function at 0x421371
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
and dword [ebp - 4], 0
push ebx
push esi
mov esi, eax
mov ecx, dword [esi + 4]
push edi
mov edi, 0x4395e8
test ecx, ecx
je 0x421390
mov eax, dword [ecx]
jmp 0x421399
mov eax, dword [esi + 8]
test eax, eax
je 0x42139e
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x4213a1
mov dword [ebp - 8], edi
mov edx, dword [esi + 0xc]
test edx, edx
je 0x4213af
mov eax, dword [edx]
mov dword [ebp - 0xc], eax
jmp 0x4213b2
mov dword [ebp - 0xc], edi
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x4213e2
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [edx + 0x14]
lea ebx, [edx + 0x40]
mov dword [ebp - 0x10], eax
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x4213ed
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x4213fc
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x1c]
jmp 0x4213c5
mov eax, dword [esi + 8]
neg eax
sbb eax, eax
and eax, 3
add eax, 0x2000014f
push dword [ebx]
push str.download
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
push 2
call fcn.00401607
mov edi, dword [ebp + 8]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push edi
call fcn.004349fc
test eax, eax
je 0x421480
test byte [ebp - 4], 1
je 0x421480
and dword [ebp - 4], 0xfffffffe
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x421480
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x421451
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x42145c
mov esi, 0x80004005
push esi
push 0x570
push str.apply.cpp
call fcn.0043166e
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.0042eef6
add esp, 0xc
jmp 0x42150d
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], fcn.00420a36
mov dword [ebp - 0x18], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x4214dd
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x4214dd
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x4214dd
push 0x73
pop ecx
cmp cx, word [eax + 6]
jne 0x4214dd
movzx ecx, word [eax + 8]
push 0x3a
pop edx
cmp dx, cx
je 0x4214d0
push 0x73
pop edx
cmp dx, cx
jne 0x4214dd
push 0x3a
pop ecx
cmp cx, word [eax + 0xa]
jne 0x4214dd
push edi
push ebx
lea eax, [ebp - 0x20]
push eax
call fcn.00426ed4
jmp 0x4214f6
push edi
push dword [ebp - 0x10]
lea eax, [ebp - 0x20]
push dword [ebp - 0x14]
push ebx
push dword [ebp - 0xc]
push dword [ebp - 8]
push eax
push dword [esi]
call fcn.00426748
mov esi, eax
test esi, esi
jns 0x42150d
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.0042eef6
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x4259ab
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
or dword [esi + 0x3c], 0xffffffff
push edi
xor ebx, ebx
push ebx
push dword [ebp + 0xc]
lea eax, [esi + 0x1c]
push eax
call fcn.004304a4
mov edi, eax
cmp edi, ebx
jge 0x4259d7
push str.Failed_to_copy_file_name.
jmp 0x425ac5
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call edi
mov dword [esi + 0x24], eax
cmp eax, ebx
jne 0x425a24
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x4259ff
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x425a0a
mov edi, 0x80004005
push edi
push 0x94
push str.cabextract.cpp
call fcn.0043166e
push str.Failed_to_create_begin_operation_event.
jmp 0x425ac5
push ebx
push ebx
push 1
push ebx
call edi
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x425a68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x425a46
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x425a51
mov edi, 0x80004005
push edi
push 0x97
push str.cabextract.cpp
call fcn.0043166e
push str.Failed_to_create_operation_complete_event.
jmp 0x425ac5
push ebx
push ebx
push esi
push 0x425765
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x20], eax
cmp eax, ebx
jne 0x425ab5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x425a93
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x425a9e
mov edi, 0x80004005
push edi
push 0x9b
push str.cabextract.cpp
call fcn.0043166e
push str.Failed_to_create_extraction_thread.
jmp 0x425ac5
call fcn.004250e7
mov edi, eax
cmp edi, ebx
jge 0x425acd
push str.Failed_to_wait_for_operation_complete.
push edi
call fcn.0042eef6
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x425d85
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
push dword [ebp + 0xc]
xor ebx, ebx
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 8], ebx
mov dword [esi], ebx
mov dword [esi + 4], ebx
call fcn.00416d55
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x425dc0
push dword [ebp + 8]
push str.Failed_to_calculate_resume_path_from_working_path:__ls
push eax
call fcn.0042eef6
add esp, 0xc
jmp 0x425e74
mov eax, dword [ebp + 0xc]
push ebx
push 0x80
push 4
push ebx
push 4
push 0xc0000000
push dword [eax]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
jne 0x425e26
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x425df7
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x425e05
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xd0
push str.downloadengine.cpp
call fcn.0043166e
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_create_resume_file:__ls
push dword [ebp - 4]
jmp 0x425db3
push ebx
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, edi
push eax
lea eax, [edi + esi]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x425e7d
add edi, dword [ebp - 8]
cmp dword [ebp - 8], ebx
je 0x425e4f
cmp edi, 8
jb 0x425e26
cmp edi, 8
je 0x425e59
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
or dword [ebp + 8], 0xffffffff
mov dword [eax], ecx
cmp dword [ebp + 8], 0xffffffff
je 0x425e74
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x425e91
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x425e9f
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0xd7
push str.downloadengine.cpp
call fcn.0043166e
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_read_resume_file:__ls
push dword [ebp - 4]
call fcn.0042eef6
add esp, 0xc
jmp 0x425e65
Function at 0x425ec8
Capabilities:
Download and write a file
Read data from internet
Receive and write data from server to client
Receive data
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
push ebx
push ebx
push dword [esi + 4]
mov dword [ebp - 8], ebx
push dword [esi]
push dword [ebp + 0xc]
call fcn.0043492c
mov dword [ebp - 4], eax
cmp eax, ebx
jge 0x425efc
push str.Failed_to_seek_to_start_point_in_file.
push eax
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x426069
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x425fe2
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x426068
xor edi, edi
mov dword [ebp - 0xc], ebx
push ebx
lea ecx, [ebp - 0xc]
push ecx
sub eax, edi
push eax
mov eax, dword [ebp + 0x1c]
add eax, edi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x426020
add edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
cmp dword [ebp - 0xc], ebx
je 0x425f56
cmp edi, eax
jb 0x425f28
add dword [esi], edi
adc dword [esi + 4], ebx
cmp dword [ebp + 0x10], 0xffffffff
je 0x425faa
push ebx
push ebx
push ebx
push ebx
push dword [ebp + 0x10]
xor edi, edi
mov dword [ebp - 0x10], ebx
call fcn.0043492c
cmp eax, ebx
jge 0x425f85
push str.Failed_to_seek_to_start_point_in_file.
push eax
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x425faa
push ebx
lea eax, [ebp - 0x10]
push eax
push 8
pop eax
sub eax, edi
push eax
lea eax, [esi + edi*8]
push eax
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add edi, dword [ebp - 0x10]
cmp dword [ebp - 0x10], ebx
je 0x425faa
cmp edi, 8
jb 0x425f85
mov eax, dword [ebp + 0x24]
cmp eax, ebx
je 0x425fd4
cmp dword [eax], ebx
je 0x425fd4
push dword [ebp + 0xc]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [esi + 4]
push dword [esi]
push eax
call fcn.00416d86
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x42605b
cmp dword [ebp - 8], ebx
jne 0x425efd
jmp 0x426068
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x425ff6
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x426004
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x1ad
push str.downloadengine.cpp
call fcn.0043166e
push str.Failed_while_reading_from_internet.
push dword [ebp - 4]
jmp 0x426061
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jle 0x426034
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 4], eax
cmp eax, ebx
jl 0x426042
mov dword [ebp - 4], 0x80004005
push dword [ebp - 4]
push 0x1b9
push str.downloadengine.cpp
call fcn.0043166e
push str.Failed_to_write_data_from_internet.
jmp 0x42601b
push str.UX_aborted_on_cache_progress.
push eax
call fcn.0042eef6
pop ecx
pop ecx
pop edi
mov eax, dword [ebp - 4]
pop ebx
leave
ret 0x20
Function at 0x42623f
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
push 7
xor esi, esi
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
mov dword [ebp - 4], esi
rep stosd dword es:[edi], eax
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
cmp dword [ebp - 4], ebx
je 0x42626d
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [ebp - 4], ebx
cmp esi, ebx
je 0x42627a
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor esi, esi
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp + 0x14]
push dword [eax]
call fcn.00436fb9
mov edi, eax
cmp edi, ebx
jl 0x4263a9
mov ebx, dword [ebp + 0x24]
xor edx, edx
cmp ebx, edx
je 0x4262a2
mov ecx, ebx
cmp word [ebx], dx
jne 0x4262a5
mov ecx, dword [ebp - 0x14]
mov edi, dword [ebp + 0x20]
cmp edi, edx
je 0x4262b3
mov eax, edi
cmp word [edi], dx
jne 0x4262b6
mov eax, dword [ebp - 0x18]
push edx
push edx
xor edx, edx
cmp dword [ebp - 0x24], 1
setne dl
lea edx, [edx + edx + 1]
push edx
push ecx
push eax
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x10]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
test esi, esi
je 0x4263b8
test edi, edi
je 0x42631d
cmp word [edi], 0
je 0x42631d
test ebx, ebx
je 0x42631d
cmp word [ebx], 0
je 0x42631d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
push eax
push edi
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 0x2b
push esi
call edi
test eax, eax
je 0x42631d
push dword [ebp + 0x24]
call ebx
push eax
push dword [ebp + 0x24]
push 0x2c
push esi
call edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x1c]
mov eax, dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x24]
push dword [ebp + 0x18]
push esi
call fcn.00425b5e
mov edi, eax
test edi, edi
js 0x4263f3
push dword [ebp + 0x30]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 8]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00426071
mov edi, eax
test edi, edi
js 0x4263ff
cmp dword [ebp - 8], 0
jne 0x426257
mov eax, dword [ebp + 0x28]
mov dword [eax], esi
mov eax, dword [ebp + 0x2c]
xor esi, esi
and dword [ebp - 4], esi
mov ecx, ebx
mov dword [eax], ecx
lea eax, [ebp - 0x24]
push eax
call fcn.00436d08
cmp dword [ebp - 4], 0
pop ebx
je 0x426396
push dword [ebp - 4]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test esi, esi
je 0x4263a1
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, edi
pop edi
pop esi
leave
ret 0x2c
push str.Failed_to_break_URL_into_server_and_resource_parts.
push edi
call fcn.0042eef6
pop ecx
pop ecx
jmp 0x42637d
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4263cc
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
test edi, edi
js 0x4263d7
mov edi, 0x80004005
push edi
push 0x213
push str.downloadengine.cpp
call fcn.0043166e
mov eax, dword [ebp + 0x14]
push dword [eax]
push str.Failed_to_connect_to_URL:__ls
jmp 0x426409
mov eax, dword [ebp + 0x14]
push dword [eax]
push str.Failed_to_open_internet_URL:__ls
jmp 0x426409
mov eax, dword [ebp + 0x14]
push dword [eax]
push str.Failed_to_send_request_to_URL:__ls
push edi
call fcn.0042eef6
add esp, 0xc
jmp 0x42637d
Function at 0x42731a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4530d0]
jne 0x427324
repz ret
jmp fcn.00429304

Function at 0x42b07b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4530d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00428b12
and dword [ebp - 0x14], 0
cmp dword [0x454cfc], 0
mov dword [ebp - 0x18], eax
jne 0x42b12e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42b1d6
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44e10c
push ebx
call edi
test eax, eax
je 0x42b1d6
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x454cfc], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x454d00], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x454d04], eax
call edi
push eax
call esi
mov dword [0x454d0c], eax
test eax, eax
je 0x42b12e
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x454d08], eax
mov eax, dword [0x454d08]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42b187
cmp dword [0x454d0c], ecx
je 0x42b187
push eax
call esi
push dword [0x454d0c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42b187
test ebx, ebx
je 0x42b187
call edi
test eax, eax
je 0x42b17e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42b17e
test byte [ebp - 8], 1
jne 0x42b187
or dword [ebp + 0x10], 0x200000
jmp 0x42b1ba
mov eax, dword [0x454d00]
cmp eax, dword [ebp - 0x18]
je 0x42b1ba
push eax
call esi
test eax, eax
je 0x42b1ba
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42b1ba
mov eax, dword [0x454d04]
cmp eax, dword [ebp - 0x18]
je 0x42b1ba
push eax
call esi
test eax, eax
je 0x42b1ba
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x454cfc]
call esi
test eax, eax
je 0x42b1d6
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42b1d8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042731a
leave
ret
Function at 0x42e56a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
push edi
xor ebx, ebx
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [0x453ef0], 0xffffffff
mov dword [ebp + 8], eax
jne 0x42e5a4
push ebx
push edi
push 0x454d98
call fcn.004306fe
mov ebx, eax
test ebx, ebx
js 0x42e5fc
xor ebx, ebx
jmp 0x42e5fc
test eax, eax
je 0x42e5fc
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
sub eax, esi
push eax
lea eax, [esi + edi]
push eax
push dword [0x453ef0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42e5e2
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x42e5dc
and eax, 0xffff
or eax, 0x80070000
mov ebx, eax
test ebx, ebx
js 0x42e5ec
add esi, dword [ebp - 4]
cmp esi, dword [ebp + 8]
jb 0x42e5a8
jmp 0x42e5fc
push ebx
push 0x318
push str.logutil.cpp
call fcn.0043166e
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x42eb97
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4530d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [str.unknown]
mov eax, 0x104
push eax
mov dword [ebp - 0x424], eax
xor ebx, ebx
lea eax, [ebp - 0x20c]
push eax
push ebx
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
mov dword [ebp - 0x418], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov esi, 0x208
test eax, eax
jne 0x42ebfb
push esi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004272a0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00434f65
test eax, eax
jns 0x42ec25
mov dword [ebp - 0x41c], ebx
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
jne 0x42ec49
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
dec esi
jne 0x42ec43
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.00437158
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop esi
push esi
call fcn.0042eb12
mov eax, dword [ebp - 0x420]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x41c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
push str.Executable:__ls_v_d._d._d._d
push esi
call fcn.0042eb12
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push esi
call fcn.0042eb12
mov eax, dword [0x453ef4]
add esp, 0x34
sub eax, ebx
je 0x42ece2
dec eax
je 0x42ecda
dec eax
je 0x42ecd2
dec eax
je 0x42ecca
dec eax
jne 0x42ece8
mov edi, dword [str.debug]
jmp 0x42ece8
mov edi, dword [str.verbose]
jmp 0x42ece8
mov edi, dword [str.standard]
jmp 0x42ece8
mov edi, dword [str.warning]
jmp 0x42ece8
mov edi, dword [str.none]
push edi
push str.____logging_level:__hs____
push esi
call fcn.0042eb12
add esp, 0xc
cmp dword [ebp - 0x418], ebx
pop edi
pop esi
pop ebx
je 0x42ed0d
push dword [ebp - 0x418]
call fcn.0042f657
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.0042731a
leave
ret
Function at 0x42ef9b
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
and dword [ebp - 8], 0
push esi
push 0x44
pop eax
push 1
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0xff
call fcn.0043186c
mov dword [ebp - 4], eax
test eax, eax
jne 0x42efdc
mov esi, 0x8007000e
push esi
push 0xe3
push str.aclutil.cpp
call fcn.0043166e
jmp 0x42f105
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0042f547
mov esi, eax
test esi, esi
js 0x42f105
push ebx
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42f0f6
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, 0x7a
jne 0x42f0c9
cmp dword [ebp - 0x10], 0x44
jbe 0x42f06d
push 1
push dword [ebp - 0x10]
push dword [ebp - 4]
call fcn.0043188e
test eax, eax
jne 0x42f06a
call ebx
test eax, eax
jle 0x42f054
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x42f05f
mov esi, 0x80004005
push esi
push 0xf3
jmp 0x42f0ea
mov dword [ebp - 4], eax
cmp dword [ebp - 0xc], 0xff
jbe 0x42f088
push dword [ebp - 0xc]
lea eax, [ebp - 8]
push eax
call fcn.0042f547
mov esi, eax
test esi, esi
js 0x42f103
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 8]
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call edi
test eax, eax
jne 0x42f0f6
call ebx
test eax, eax
jle 0x42f0b6
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x42f0c1
mov esi, 0x80004005
push esi
push 0xff
jmp 0x42f0ea
test eax, eax
je 0x42f0f6
jle 0x42f0d9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x42f0e4
mov esi, 0x80004005
push esi
push 0x104
push str.aclutil.cpp
call fcn.0043166e
jmp 0x42f103
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
xor esi, esi
mov dword [eax], ecx
mov dword [ebp - 4], esi
pop edi
pop ebx
cmp dword [ebp - 8], 0
je 0x42f113
push dword [ebp - 8]
call fcn.0042f657
cmp dword [ebp - 4], 0
je 0x42f121
push dword [ebp - 4]
call fcn.00431a27
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x42f128
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp eax, edi
jne 0x42f148
mov esi, 0x80070057
push esi
push 0x1d
jmp 0x42f19e
mov ecx, dword [eax + 8]
cmp ecx, edi
je 0x42f1aa
lea eax, [ebp - 4]
push eax
push ecx
push edi
call fcn.0042ef9b
mov esi, eax
cmp esi, edi
jl 0x42f207
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x42f1fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x42f190
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x42f19b
mov esi, 0x80004005
push esi
push 0x2f
push str.aclutil.cpp
call fcn.0043166e
jmp 0x42f207
lea ecx, [ebp - 4]
push ecx
push dword [eax + 0x30]
movzx ecx, byte [eax + 0x12]
push dword [eax + 0x2c]
add eax, 0xc
push dword [eax + 0x1c]
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x10]
push dword [eax + 0xc]
push dword [eax + 8]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x42f164
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
jle 0x42f1ed
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, edi
jl 0x42f1f8
mov esi, 0x80004005
push esi
push 0x29
jmp 0x42f19e
xor eax, eax
cmp dword [ebp - 8], edi
sete al
mov esi, eax
cmp dword [ebp - 4], edi
je 0x42f215
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
pop edi
mov eax, esi
pop esi
leave
ret 8