joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463260
Capabilities:
Get domain controller name

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
lea eax, [ebp - 4]
push eax
push SQLAllocStmt
push 0
push 0
push 0
push 0
call dword [sym.imp.NETAPI32.dll_DsGetDcNameA]
mov edi, eax
test edi, edi
jne 0x46333a
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push esi
push edx
push str.GetComputerLogonServer_:_DomainControllerName_:_s__n
call fcn.00423960
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
push ecx
push str.DomainControllerAddress_:_s_n
call fcn.00423960
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x1c]
push eax
push str.DomainName_:_s_n
call fcn.00423960
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x20]
push edx
push str.DnsForestName_:_s_n
call fcn.00423960
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x28]
push ecx
push str.DcSiteName_:_s_n
call fcn.00423960
mov edx, dword [ebp - 4]
mov eax, dword [edx + 0x2c]
push eax
push str.ClientSiteName_:_s_n
call fcn.00423960
mov esi, dword [ebp - 4]
mov eax, dword [esi]
add esp, 0x30
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4632f7
sub eax, edx
lea ecx, [eax*4 + 2]
push ecx
push 1
call fcn.00491e51
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov ecx, dword [esi]
add esp, 8
add ecx, 2
mov edx, eax
pop esi
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x463320
mov eax, dword [ebp - 4]
push eax
call sub.NETAPI32.dll_NetApiBufferFree
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
push edi
push str.GetComputerLogonServer:_Error_while_fetching_DC_name___d__n
call fcn.00423ad0
add esp, 8
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x463350
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0x7e
push eax
lea ecx, [ebp - 0x82]
push ecx
mov esi, 1
mov word [ebp - 0x84], ax
call fcn.00492ac0
add esp, 0xc
lea edx, [ebp - 0x214]
push edx
push 0x202
mov dword [ebp - 0x218], 0x40
call sub.WSOCK32.dll_WSAStartup
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x84]
push ecx
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
jne 0x4633d4
call sub.WSOCK32.dll_WSAGetLastError
push eax
push str.GetLocalComputerName:_Error_while_getting_computername___d__n
call fcn.00423ad0
add esp, 8
xor esi, esi
jmp 0x463402
lea edx, [ebp - 0x84]
push edx
push str.GetLocalComputerName:_Computer_Name:__ws__n
call fcn.00423960
lea eax, [ebp - 0x84]
push edi
push eax
call fcn.00462840
mov ecx, dword [edi]
push ecx
push str.GetLocalComputerName_:_Computer_Name_:__s_n
call fcn.00423db0
add esp, 0x18
call sub.WSOCK32.dll_WSACleanup
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
Function at 0x463fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
lea edx, [ebp + 0x10]
push edx
mov edx, dword [ebp + 8]
push esi
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0xc]
push eax
push 0
mov dword [edi], 0
mov eax, dword [ecx]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x464003
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x463fdf
cmp eax, 2
jne 0x463ff1
mov eax, dword [ebp + 0x10]
test esi, esi
je 0x463fff
test eax, eax
je 0x463ffc
cmp byte [eax + esi - 1], 0
je 0x463fff
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
mov byte [esi], 0
mov dword [edi], eax
xor eax, eax
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x464ae0
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
test esi, esi
je 0x464b94
push 1
call fcn.0047f310
push str.CertRecoveryMechanismForReceive:_Ignoring_Certificate_check_flags_added_for_communication__n
call fcn.00423db0
or dword [ebp + 0xc], 0x3300
push esi
call fcn.0047fa60
add esp, 0xc
mov ecx, dword [edi]
push 4
lea eax, [ebp + 0xc]
push eax
push 0x1f
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x464bb2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CertRecoveryMechanismForReceive_:__Error_in_WinHttpSetOption______d__n
mov dword [0x515ee0], eax
call fcn.00423ad0
mov edx, dword [0x515ee0]
push edx
call fcn.00464180
mov eax, dword [0x515ee0]
add esp, 0xc
test eax, eax
je 0x464bea
test esi, esi
jne 0x464c42
cmp dword [0x515e24], 0
jne 0x464c46
push str.CertRecoveryMechanism:_Invoking_CertRecoveryMechanism_with_need_to_enable_flag_true
call fcn.00423960
mov edx, dword [ebp + 0xc]
push 1
push edx
push edi
call fcn.00464ae0
add esp, 0x10
mov dword [0x515ee0], eax
jmp 0x464bfc
push 0
call fcn.0047fa60
add esp, 4
test eax, eax
jne 0x464b14
mov dword [0x515ee0], 0xd
jmp 0x464b67
mov eax, dword [edi]
push 0
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x464be3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CertRecoveryMechanismForReceive_:__Error_in_WinHttpReceiveResponse______d__n
mov dword [0x515ee0], eax
call fcn.00423ad0
mov ecx, dword [0x515ee0]
push ecx
jmp 0x464b4a
xor eax, eax
mov dword [0x515ee0], eax
test esi, esi
jne 0x464bfc
push esi
call fcn.0047f310
add esp, 4
mov eax, dword [0x515ee0]
test eax, eax
jne 0x464c42
test esi, esi
je 0x464c42
push str.CertRecoveryMechanismForReceive:_Communication_enabled_with_ignoring_security_flags__n
call fcn.00423ad0
mov ecx, dword [str.SoftwareAdventNetDesktopCentralDCAgent]
lea eax, [ebp + 0x10]
push eax
push str.CertMETrackingAdded
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp + 0x10], 0
call fcn.00478d80
add esp, 0x14
cmp dword [ebp + 0x10], 0
jne 0x464c3d
call fcn.0045de70
mov eax, dword [0x515ee0]
pop edi
pop esi
pop ebp
ret
push 1
call fcn.0047f310
push str.CertRecoveryMechanism:_strict_mode_is_enabled.._skipping_the_validation_with_certificate_flag_enabled__n
call fcn.00423960
add esp, 8
jmp 0x464bf7
Function at 0x464de0
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.____________Inside_GetFilelastmodifiedTime_Method_________________n
call fcn.00423960
mov edi, dword [ebp + 8]
add esp, 4
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0xb
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x7a
jne 0x464ede
mov ecx, dword [ebp - 4]
lea edx, [ecx*4 + 2]
push edx
push 1
call fcn.00491e51
add esp, 8
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0xb
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebx
cmp edi, 1
je 0x464e72
cmp eax, 0x7a
je 0x464e72
call ebx
mov ebx, eax
push ebx
push str.GetFilelastmodifiedTime_:__Error_in_Content_Length_Header_____d__n
call fcn.00423ad0
push edi
call fcn.00464180
add esp, 0xc
jmp 0x464ed2
push esi
push str.GetFilelastmodifiedTime_:_File_last_modified_time:__S_n
call fcn.00423960
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464e85
sub eax, edx
sar eax, 1
lea ecx, [eax*4 + 2]
push ecx
push 1
call fcn.00491e51
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
add esp, 8
mov ecx, esi
mov edx, eax
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x464eb0
test esi, esi
je 0x464ed0
push esi
call fcn.0048efd8
add esp, 4
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x464eeb
push esi
call fcn.0048efd8
jmp 0x464ee8
push str.GetFilelastmodifiedTime:_Could_nt_query_HEADER_for_last_modified_time_n
call fcn.00423ad0
add esp, 4
push str.____________End_of_GetFilelastmodifiedTime_Method_________________n
call fcn.00423960
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x464f10
Capabilities:
Read http header

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push str.____________Inside_GetRedirectionUrlFromHeader_Method_________________n
call fcn.00423db0
mov edi, dword [ebp + 8]
add esp, 4
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x21
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 0x7a
jne 0x46500e
mov ecx, dword [ebp - 4]
lea edx, [ecx*4 + 2]
push edx
push 1
call fcn.00491e51
add esp, 8
push 0
mov esi, eax
lea eax, [ebp - 4]
push eax
push esi
push 0
push 0x21
push edi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call ebx
cmp edi, 1
je 0x464fa2
cmp eax, 0x7a
je 0x464fa2
call ebx
mov ebx, eax
push ebx
push str.GetRedirectionUrlFromHeader_:__Error_in_Content_Length_Header_____d__n
call fcn.00423ad0
push edi
call fcn.00464180
add esp, 0xc
jmp 0x465002
push esi
push str.GetRedirectionUrlFromHeader_:_content_location:__S_n
call fcn.00423db0
mov eax, esi
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x464fb5
sub eax, edx
sar eax, 1
lea ecx, [eax*4 + 2]
push ecx
push 1
call fcn.00491e51
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
add esp, 8
mov ecx, esi
mov edx, eax
nop
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x464fe0
test esi, esi
je 0x465000
push esi
call fcn.0048efd8
add esp, 4
xor esi, esi
xor ebx, ebx
test esi, esi
je 0x46501b
push esi
call fcn.0048efd8
jmp 0x465018
push str.GetRedirectionUrlFromHeader:_Could_nt_query_HEADER_for_content_location_time_n
call fcn.00423ad0
add esp, 4
push str.____________End_of_GetRedirectionUrlFromHeader_Method_________________n
call fcn.00423db0
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x465270
Capabilities:
Receive http response

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push 0x104
push 1
xor esi, esi
xor edi, edi
call fcn.00491e51
mov ebx, dword [ebp + 0x10]
add esp, 8
mov dword [ebx], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push ecx
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x465394
mov esi, dword [ebp - 8]
test esi, esi
je 0x46539d
lea edx, [esi + 1]
push edx
push 1
call fcn.00491e51
mov edx, dword [ebp + 8]
add esp, 8
lea ecx, [ebp - 4]
push ecx
push esi
push eax
push edx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4653a6
mov eax, dword [ebp - 4]
add edi, eax
mov dword [ebp - 0xc], edi
test eax, eax
je 0x465379
mov eax, dword [ebx]
push eax
lea ecx, [ebp + 0x10]
push ecx
mov dword [ebp + 0x10], 0
call fcn.0042bfe0
mov eax, dword [ebx]
add esp, 8
test eax, eax
je 0x46531c
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebx], 0
inc edi
push edi
push 1
call fcn.00491e51
mov ecx, dword [ebp + 0x10]
add esp, 8
mov dword [ebx], eax
mov edx, eax
nop
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x465330
mov eax, dword [ebp - 0x10]
mov ecx, eax
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x465340
mov edi, dword [ebx]
sub eax, ecx
mov esi, ecx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x465350
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x465376
push eax
call fcn.0048efd8
add esp, 4
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x465389
push eax
call fcn.0048efd8
add esp, 4
mov eax, dword [ebp + 0xc]
cmp edi, eax
je 0x4653c5
ja 0x4653db
xor esi, esi
cmp dword [ebp - 4], esi
jne 0x465291
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.Error_in_Read_Data__ld__n
call fcn.00423ad0
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Bytes_read_reached_the_contenlength_n
call fcn.00423db0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push str.InternetGetRequestEx_:_File_downloading_more_than_the_content_length._File_download_deleted_and_download_failed.__n
call fcn.00423ad0
add esp, 4
pop edi
pop esi
mov eax, 0xd
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x465730
Capabilities:
Delete file

Disassembly:
push esi
push str.Performing_PreDownloadCleaningOfPartialFile_n
mov esi, ecx
call fcn.00423db0
xor eax, eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, dword [esi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
pop esi
ret
Function at 0x467970
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8f68
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
xor ebx, ebx
push str.Inside_CleanFileAndRegistry_n
mov dword [ebp - 4], ebx
call fcn.00423db0
mov eax, dword [edi + 4]
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [0x513fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x513fec
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [str.SoftwareAdventNetDesktopCentralDCAgent]
mov byte [ebp - 4], 1
cmp edx, ebx
jne 0x4679e0
xor eax, eax
jmp 0x4679ee
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4679e5
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.00401700
push 0xe
push str.FileMetaData_
lea ecx, [ebp - 0x14]
call fcn.00411c00
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
cmp dword [eax - 4], 1
jle 0x467a22
mov eax, dword [eax - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.004014b0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
push ecx
push eax
call fcn.004628e0
mov eax, dword [edi + 0xc]
add esp, 8
cmp dword [eax - 4], 1
jle 0x467a44
mov edx, dword [eax - 0xc]
push edx
lea ecx, [edi + 0xc]
call fcn.00402490
mov esi, dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
push esi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00478ca0
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp eax, ebx
je 0x467a6c
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 0x18], ebx
mov eax, dword [edi + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x14]
call fcn.00411c00
mov esi, dword [ebp - 0x14]
cmp dword [esi - 4], 1
jle 0x467a94
mov ecx, dword [esi - 0xc]
push ecx
lea ecx, [ebp - 0x14]
call fcn.004014b0
mov esi, dword [ebp - 0x14]
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00478f20
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], bl
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x467ac1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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
Function at 0x46b560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9230
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebx + 0x20]
lea esi, [ebx + 0x20]
push 0x4fb68d
push eax
mov dword [ebp - 4], 0
call fcn.00497f2f
add esp, 8
test eax, eax
jne 0x46b5e6
call fcn.004774c0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
mov eax, dword [ebp - 0x18]
push eax
push edi
push str._lu_lu_lu
push esi
call fcn.0040af10
mov ecx, dword [esi]
add esp, 0x14
push ecx
push str.Formed_Unique_id_for_the_file_is__s_n
call fcn.00423db0
add esp, 8
mov edx, dword [0x515c08]
lea edi, [ebx + 4]
push edx
mov ecx, edi
call fcn.004075f0
mov eax, dword [ebx + 8]
mov ecx, dword [eax - 0xc]
add ebx, 8
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x1c], ebx
call fcn.0040a8e0
mov esi, dword [esi]
push esi
mov ecx, edi
call fcn.004092d0
mov eax, dword [0x513fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x513fec
call edx
add eax, 0x10
mov dword [ebp - 0x18], eax
mov eax, dword [0x513fec]
mov edx, dword [eax + 0xc]
mov esi, dword [0x515c08]
mov ecx, 0x513fec
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
test esi, esi
je 0x46b678
test esi, 0xffff0000
jne 0x46b678
movzx esi, si
push 0
push esi
call fcn.004011a0
add esp, 8
test eax, eax
je 0x46b681
push esi
push eax
lea ecx, [ebp - 0x14]
call fcn.0045f160
jmp 0x46b681
push esi
lea ecx, [ebp - 0x14]
call fcn.004075f0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
mov bl, 3
push edx
mov byte [ebp - 4], bl
call fcn.00465e00
add esp, 0xc
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00404900
mov eax, dword [ebp - 0x20]
add eax, 0xfffffff0
mov byte [ebp - 4], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b6c9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b6ec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [ebp - 0x18]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push esi
push str.Temporary_file_path_is__S_n
call fcn.00423db0
lea eax, [esi - 0x10]
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46b750
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call 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
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x46b770
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9250
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push eax
xor ebx, ebx
push ecx
push str.Inside_SaveToDestFile_from__S_to__S_n
mov dword [ebp - 4], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
call fcn.00423db0
mov eax, dword [esi]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x46b7cd
mov edx, dword [eax - 0xc]
push edx
mov ecx, esi
call fcn.00402490
mov eax, dword [esi]
push 1
push eax
call fcn.0045c500
mov edi, eax
add esp, 8
cmp edi, ebx
je 0x46b7e8
cmp edi, 0xb7
jne 0x46b839
mov eax, dword [esi]
mov ecx, dword [esi + 4]
push ebx
push eax
push ecx
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
jne 0x46b832
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 4]
mov edi, eax
mov eax, dword [esi]
push eax
push ecx
push str.InternetGetRequestEx_:_could_nt_copy_from__S_file_to__S___n
call fcn.00423ad0
push edi
call fcn.004635b0
add esp, 0x10
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
mov ecx, esi
call fcn.00467970
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
Function at 0x477540
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x5142b0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x130], esi
mov dword [ebp - 0x134], esi
call fcn.00477450
push esi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4775a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcessID_:_CreateToolhelp32Snapshot_is_failed_due_to_the_following_error_code__d__n
call fcn.00423ad0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x12c]
push eax
push ebx
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x4775e4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetProcessID_:_Process32First_function_failed_:_d_n
call fcn.00423ad0
add esp, 8
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 0xc]
push 0xf
lea ecx, [ebp - 0x108]
push edi
push ecx
call fcn.00494d76
add esp, 0xc
test eax, eax
jne 0x477642
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x134]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x477642
cmp esi, 0xffffffff
je 0x47767b
mov ecx, dword [ebp - 0x134]
push edi
push ecx
push str.GetProcessID_:_Retrieved_Session_ID_:__d_for_the_process__s__n
call fcn.00423db0
push esi
push str.GetProcessID_:_Compare_Session_ID_:__d__n
call fcn.00423db0
add esp, 0x14
cmp dword [ebp - 0x134], esi
je 0x477683
lea edx, [ebp - 0x12c]
push edx
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4775e7
mov esi, dword [ebp - 0x130]
push esi
push edi
push str.GetProcessID_:_Process_ID_for__s_is__d_n
call fcn.00423db0
mov ecx, dword [ebp - 4]
add esp, 0xc
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048ed61
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x124]
jmp 0x477659
mov eax, dword [ebp - 0x124]
mov esi, eax
jmp 0x477659