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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
mov eax, dword [edi + 4]
mov dword [ebp - 4], esi
mov ebx, 0x43b580
test eax, eax
je 0x420293
mov edx, dword [eax]
jmp 0x4202a0
mov ecx, dword [edi + 8]
test ecx, ecx
je 0x42029e
mov edx, dword [ecx]
jmp 0x4202a0
mov edx, ebx
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4202a9
mov ebx, dword [ecx]
test eax, eax
je 0x4202bb
xor eax, eax
test ecx, ecx
setne al
add eax, 0x20000150
jmp 0x4202c9
cmp dword [edi + 8], esi
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebp + 0xc]
push str.copy
push ebx
push edx
push eax
push 2
call fcn.00402003
mov ebx, dword [ebp + 0x10]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push ebx
call fcn.00436918
test eax, eax
je 0x420347
mov eax, dword [ebp - 4]
test al, 1
je 0x420347
and eax, 0xfffffffe
push eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x420347
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x540
push str.apply.cpp
call fcn.0042fef9
push ebx
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00430877
add esp, 0xc
jmp 0x4203c5
push esi
lea eax, [edi + 0x20]
push eax
push edi
push fcn.00420169
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CopyFileExW]
test eax, eax
jne 0x4203c5
cmp dword [edi + 0x20], esi
je 0x420385
mov esi, 0x80070642
push esi
push 0x54a
push str.apply.cpp
call fcn.0042fef9
push ebx
push dword [ebp + 0xc]
push str.BA_aborted_copy_of_payload_from:__ls_to:__ls.
jmp 0x4203bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x54e
push str.apply.cpp
call fcn.0042fef9
push ebx
push dword [ebp + 0xc]
push str.Failed_attempt_to_copy_payload_from:__ls_to:__ls.
push esi
call fcn.00430877
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4207fa
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
and dword [ebp - 4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, 0x43b580
mov ecx, dword [esi + 4]
push edi
mov dword [ebp - 8], ebx
test ecx, ecx
je 0x42081d
mov eax, dword [ecx]
jmp 0x420826
mov eax, dword [esi + 8]
test eax, eax
je 0x42082b
mov eax, dword [eax]
mov dword [ebp + 8], eax
jmp 0x42082e
mov dword [ebp + 8], ebx
mov edx, dword [esi + 0xc]
test edx, edx
je 0x42083a
mov eax, dword [edx]
mov dword [ebp - 8], eax
lea ebx, [ecx + 0x2c]
test ecx, ecx
jne 0x42086a
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edx + 0x14]
lea ebx, [edx + 0x40]
mov dword [ebp - 0xc], eax
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
test ecx, ecx
je 0x420875
xor eax, eax
test edx, edx
setne al
add eax, 0x20000150
jmp 0x420884
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 0x1c]
jmp 0x42084d
cmp dword [esi + 8], 0
mov eax, 0x2000014f
lea ecx, [eax + 3]
cmovne eax, ecx
push dword [ebx]
push str.download
push dword [ebp - 8]
push dword [ebp + 8]
push eax
push 2
call fcn.00402003
mov edi, dword [ebp + 0xc]
add esp, 0x18
lea eax, [ebp - 4]
push eax
push edi
call fcn.00436918
test eax, eax
je 0x420908
mov eax, dword [ebp - 4]
test al, 1
je 0x420908
and eax, 0xfffffffe
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x420908
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x56e
push str.apply.cpp
call fcn.0042fef9
push edi
push str.Failed_to_clear_readonly_bit_on_payload_destination_path:__ls
push esi
call fcn.00430877
add esp, 0xc
jmp 0x420997
and dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], fcn.00420169
mov dword [ebp - 0x14], esi
mov eax, dword [ebx]
push 0x62
pop ecx
cmp cx, word [eax]
jne 0x420967
push 0x69
pop ecx
cmp cx, word [eax + 2]
jne 0x420967
push 0x74
pop ecx
cmp cx, word [eax + 4]
jne 0x420967
push 0x73
pop edx
cmp dx, word [eax + 6]
jne 0x420967
movzx ecx, word [eax + 8]
mov dword [ebp + 0xc], 0x3a
cmp word [ebp + 0xc], cx
je 0x42095a
cmp dx, cx
jne 0x420967
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 0xa]
jne 0x420967
push edi
push ebx
lea eax, [ebp - 0x1c]
push eax
call fcn.00426224
jmp 0x420980
push edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push dword [ebp - 0x10]
push ebx
push dword [ebp - 8]
push dword [ebp + 8]
push eax
push dword [esi]
call fcn.00425a94
mov esi, eax
test esi, esi
jns 0x420997
push edi
push dword [ebx]
push str.Failed_attempt_to_download_URL:__ls_to:__ls
push esi
call fcn.00430877
add esp, 0x10
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x423ef3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
or dword [edi + 0x3c], 0xffffffff
push ebx
push dword [ebp + 0xc]
lea eax, [edi + 0x1c]
push eax
call fcn.00433da8
mov esi, eax
test esi, esi
jns 0x423f1f
push str.Failed_to_copy_file_name.
jmp 0x42400b
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x24], eax
test eax, eax
jne 0x423f6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x97
push str.cabextract.cpp
call fcn.0042fef9
push str.Failed_to_create_begin_operation_event.
jmp 0x42400b
push ebx
push ebx
push 1
push ebx
call esi
mov dword [edi + 0x28], eax
test eax, eax
jne 0x423fae
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x9a
push str.cabextract.cpp
call fcn.0042fef9
push str.Failed_to_create_operation_complete_event.
jmp 0x42400b
push ebx
push ebx
push edi
push 0x42394f
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi + 0x20], eax
test eax, eax
jne 0x423ffa
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x9e
push str.cabextract.cpp
call fcn.0042fef9
push str.Failed_to_create_extraction_thread.
jmp 0x42400b
push edi
call fcn.00423c8c
mov esi, eax
test esi, esi
jns 0x424013
push str.Failed_to_wait_for_operation_complete.
push esi
call fcn.00430877
pop ecx
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4252d2
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, eax
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
call fcn.00413b25
mov esi, eax
test esi, esi
jns 0x425312
push dword [ebp + 8]
push str.Failed_to_calculate_resume_path_from_working_path:__ls
push esi
call fcn.00430877
add esp, 0xc
jmp 0x425402
push 0
push 0x80
push 4
push 0
push 4
push 0xc0000000
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42536d
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xd3
push str.downloadengine.cpp
call fcn.0042fef9
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_create_resume_file:__ls
jmp 0x425304
mov ecx, dword [ebp - 4]
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ecx
push eax
lea eax, [ecx + ebx]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4253b5
mov ecx, dword [ebp - 4]
add ecx, dword [ebp - 8]
cmp dword [ebp - 8], 0
mov dword [ebp - 4], ecx
je 0x42539f
cmp ecx, 8
jb 0x425370
cmp ecx, 8
je 0x4253ab
and dword [ebx], 0
and dword [ebx + 4], 0
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
or edi, 0xffffffff
jmp 0x4253f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0xda
push str.downloadengine.cpp
call fcn.0042fef9
mov eax, dword [ebp + 0xc]
push dword [eax]
push str.Failed_to_read_resume_file:__ls
push esi
call fcn.00430877
add esp, 0xc
cmp edi, 0xffffffff
je 0x425402
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4258f6
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
push ecx
push ecx
and dword [ebp - 4], 0
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0
push 0
push dword [edi + 4]
push dword [edi]
push dword [ebp + 0xc]
call fcn.00436dd0
mov esi, eax
test esi, esi
jns 0x42592d
push str.Failed_to_seek_to_start_point_in_file.
push esi
call fcn.00430877
pop ecx
pop ecx
jmp 0x425a8c
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x24]
push dword [ebp + 0x20]
push dword [ebp + 8]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x425a50
cmp dword [ebp - 4], 0
je 0x425a8b
xor ebx, ebx
and dword [ebp + 0x10], ebx
push 0
lea eax, [ebp + 0x10]
push eax
mov eax, dword [ebp - 4]
sub eax, ebx
push eax
mov eax, dword [ebp + 0x20]
add eax, ebx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x425a1b
add ebx, dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
je 0x425989
cmp ebx, dword [ebp - 4]
jb 0x425958
add dword [edi], ebx
push 0
pop eax
adc dword [edi + 4], eax
cmp dword [ebp + 0x14], 0xffffffff
je 0x4259e2
push eax
push eax
push eax
push eax
push dword [ebp + 0x14]
mov ebx, eax
mov dword [ebp - 8], eax
call fcn.00436dd0
test eax, eax
jns 0x4259bb
push str.Failed_to_seek_to_start_point_in_file.
push eax
call fcn.00430877
pop ecx
pop ecx
jmp 0x4259e2
push 0
lea eax, [ebp - 8]
push eax
push 8
pop eax
sub eax, ebx
push eax
lea eax, [edi + ebx*8]
push eax
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_WriteFile]
add ebx, dword [ebp - 8]
cmp dword [ebp - 8], 0
je 0x4259e2
cmp ebx, 8
jb 0x4259bb
mov eax, dword [ebp + 0x28]
test eax, eax
je 0x425a08
cmp dword [eax], 0
je 0x425a08
push dword [ebp + 0xc]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [edi + 4]
push dword [edi]
push eax
call fcn.00413eee
mov esi, eax
test esi, esi
js 0x425a14
cmp dword [ebp - 4], 0
jne 0x42592e
jmp 0x425a8b
push str.UX_aborted_on_cache_progress.
jmp 0x425a83
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x1bc
push str.downloadengine.cpp
call fcn.0042fef9
push str.Failed_to_write_data_from_internet.
jmp 0x425a83
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x1b0
push str.downloadengine.cpp
call fcn.0042fef9
push str.Failed_while_reading_from_internet.
push esi
call fcn.00430877
pop ecx
pop ecx
pop ebx
pop edi
mov eax, esi
pop esi
leave
ret 0x24
Function at 0x425a94
Capabilities:
Create http request
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
or dword [ebp - 0xc], 0xffffffff
push ebx
mov ebx, dword [ebp + 0x18]
xor eax, eax
push esi
push edi
push eax
push dword [ebx]
mov dword [ebp - 4], eax
mov edi, eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
xorps xmm0, xmm0
lea eax, [ebp - 4]
push eax
movlpd qword [ebp - 0x18], xmm0
movlpd qword [ebp - 0x20], xmm0
call fcn.00433da8
mov esi, eax
test esi, esi
jns 0x425ae8
push str.Failed_to_copy_download_source_URL.
push esi
call fcn.00430877
pop ecx
pop ecx
jmp 0x425c42
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 0x425b34
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x96
push str.downloadengine.cpp
call fcn.0042fef9
push str.Failed_to_open_internet_session
jmp 0x425adb
lea eax, [ebp - 8]
push eax
push 0x78
push str.DownloadTimeout
push 0x44ddcc
call fcn.00438383
mov eax, dword [ebp - 8]
test eax, eax
je 0x425b80
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 2
push edi
call esi
lea eax, [ebp - 8]
push 4
push eax
push 6
push edi
call esi
lea eax, [ebp - 8]
push 4
push eax
push 5
push edi
call esi
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 8]
lea eax, [ebp - 4]
push dword [ebx + 4]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00425212
mov esi, eax
test esi, esi
jns 0x425bbd
push dword [ebp - 4]
push str.Failed_to_get_size_and_time_for_URL:__ls
push esi
call fcn.00430877
add esp, 0xc
jmp 0x425c42
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0x24]
call fcn.004252d2
push dword [ebp + 0xc]
lea eax, [ebp - 4]
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x24]
push dword [ebx + 8]
push dword [ebx + 4]
push eax
push edi
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 8]
call fcn.00424f76
mov esi, eax
test esi, esi
jns 0x425c1e
push dword [ebp - 4]
push str.Failed_to_download_URL:__ls
push esi
call fcn.00430877
add esp, 0xc
jmp 0x425c33
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x425c33
xor ecx, ecx
cmp word [eax], cx
je 0x425c33
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0xc], 0xffffffff
je 0x425c42
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x425c4f
push eax
call fcn.00434266
test edi, edi
je 0x425c5a
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 4], 0
je 0x425c68
push dword [ebp - 4]
call fcn.00434266
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x20
Function at 0x42d15a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4560d0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0042a167
mov dword [ebp - 0x14], eax
cmp dword [0x457df4], edi
jne 0x42d24b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x42d1d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42d32b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x42d32b
push 0x44fac8
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42d32b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x457df4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x457df8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x457dfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x457e04], eax
test eax, eax
je 0x42d248
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x457e00], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42d270
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42d263
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x42d285
push 4
pop eax
jmp 0x42d32d
cmp dword [ebp - 0x14], edi
je 0x42d285
push dword [0x457df4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42d26a
mov eax, dword [0x457e00]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x42d2e3
cmp dword [0x457e04], esi
je 0x42d2e3
push eax
call ebx
push dword [0x457e04]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42d2e3
test eax, eax
je 0x42d2e3
call ecx
test eax, eax
je 0x42d2d8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42d2d8
test byte [ebp - 8], 1
jne 0x42d2e3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x42d313
mov eax, dword [0x457df8]
cmp eax, esi
je 0x42d310
push eax
call ebx
test eax, eax
je 0x42d310
call eax
mov edi, eax
test edi, edi
je 0x42d310
mov eax, dword [0x457dfc]
cmp eax, esi
je 0x42d310
push eax
call ebx
test eax, eax
je 0x42d310
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x457df4]
call ebx
test eax, eax
je 0x42d32b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x42d32d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265cb
leave
ret
Function at 0x42ff10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x4560d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 0x10]
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.004265e0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x42ffae
push 0x5c
pop ecx
cmp cx, word [ebp + eax*2 - 0x20e]
je 0x42ff85
push 1
push 0x452bdc
push esi
lea eax, [ebp - 0x20c]
push eax
call fcn.0042fdb4
mov esi, eax
test esi, esi
js 0x42ffe5
mov esi, 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0042fe01
mov esi, eax
test esi, esi
js 0x42ffe5
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebx], eax
test eax, eax
jne 0x42ffcd
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x42ffe5
mov esi, 0x80004005
jmp 0x42ffe5
test edi, edi
je 0x42ffe5
push 0x104
lea eax, [ebp - 0x20c]
push eax
push edi
call fcn.00433da8
mov esi, eax
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.004265cb
leave
ret 0xc
Function at 0x430934
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x4560d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [str.unknown]
push edi
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 edi, 0x208
test eax, eax
jne 0x430998
push edi
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.004265e0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.00436f2b
test eax, eax
jns 0x4309c2
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 0x4309e6
lea eax, [ebp - 0x414]
mov byte [eax], bl
inc eax
dec edi
jne 0x4309e0
push ebx
lea eax, [ebp - 0x418]
push eax
call fcn.004388e5
push dword [ebp - 0x418]
push str._Logging_started:__ls_
push 2
pop edi
push edi
call fcn.00430d48
mov ecx, dword [ebp - 0x420]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
mov ecx, dword [ebp - 0x41c]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
lea eax, [ebp - 0x20c]
push eax
push str.Executable:__ls_v_d._d._d._d
push edi
call fcn.00430d48
lea eax, [ebp - 0x414]
push eax
push str.Computer__:__ls
push edi
call fcn.00430d48
mov eax, dword [0x456ebc]
add esp, 0x34
sub eax, ebx
je 0x430a7f
dec eax
je 0x430a77
dec eax
je 0x430a6f
dec eax
je 0x430a67
dec eax
jne 0x430a85
mov esi, dword [str.debug]
jmp 0x430a85
mov esi, dword [str.verbose]
jmp 0x430a85
mov esi, dword [str.standard]
jmp 0x430a85
mov esi, dword [str.warning]
jmp 0x430a85
mov esi, dword [str.none]
push esi
push str.____logging_level:__hs____
push edi
call fcn.00430d48
add esp, 0xc
cmp dword [ebp - 0x418], 0
pop edi
pop esi
pop ebx
je 0x430aab
push dword [ebp - 0x418]
call fcn.00434266
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.004265cb
leave
ret

Function at 0x430d86
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
and dword [ebp - 4], esi
push ebx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [0x456eb8]
mov dword [ebp + 8], eax
cmp ecx, 0xffffffff
jne 0x430dc2
push edi
push ebx
push 0x457e84
call fcn.00433fd2
mov esi, eax
test esi, esi
js 0x430e18
xor esi, esi
jmp 0x430e18
test eax, eax
je 0x430e18
push 0
lea edx, [ebp - 4]
push edx
sub eax, edi
push eax
lea eax, [edi + ebx]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x430df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
test esi, esi
js 0x430e08
add edi, dword [ebp - 4]
mov eax, dword [ebp + 8]
cmp edi, eax
jae 0x430e18
mov ecx, dword [0x456eb8]
jmp 0x430dc6
push esi
push 0x31b
push str.logutil.cpp
call fcn.0042fef9
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 4
Function at 0x431330
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
xor ecx, ecx
push esi
push edi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
test eax, eax
je 0x4313f2
cmp word [eax], cx
je 0x4313f2
push ecx
push eax
lea eax, [ebp - 4]
push eax
call fcn.00433da8
mov esi, eax
test esi, esi
js 0x43147a
lea eax, [ebp - 4]
push eax
call fcn.0043106a
mov esi, eax
test esi, esi
js 0x43147a
mov edi, dword [ebp + 0x14]
push ebx
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], ebx
jb 0x43146d
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
call fcn.00433b0a
mov esi, eax
add esp, 0xc
test esi, esi
js 0x431479
push dword [ebp - 8]
push dword [ebp - 4]
push str._s_s
push edi
call fcn.00433b0a
mov esi, eax
add esp, 0x10
test esi, esi
js 0x431479
push 0
push dword [edi]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x43146b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x431449
inc ebx
mov esi, 0x800700b7
cmp ebx, dword [ebp + 0x10]
jbe 0x43138b
jmp 0x431479
mov edi, 0x104
push edi
lea eax, [ebp - 4]
push eax
call fcn.004339ff
mov esi, eax
test esi, esi
js 0x43147a
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x43137b
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
mov eax, 0x80004005
test esi, esi
cmovns esi, eax
push esi
push 0x2d2
push str.pathutil.cpp
call fcn.0042fef9
jmp 0x43147a
cmp eax, 3
jne 0x43145b
push 0
push dword [edi]
call fcn.00437671
mov esi, eax
jmp 0x43146d
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
jmp 0x43146d
xor esi, esi
test esi, esi
js 0x431479
push edi
call fcn.0043106a
mov esi, eax
pop ebx
cmp dword [ebp - 8], 0
je 0x431488
push dword [ebp - 8]
call fcn.00434266
cmp dword [ebp - 4], 0
je 0x431496
push dword [ebp - 4]
call fcn.00434266
pop edi
mov eax, esi
pop esi
leave
ret 0x10