joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4308ae
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov edi, dword [ebx + 0x1c4]
mov dword [ebp - 4], edi
sub dword [ebp - 4], esi
mov dword [ebp - 0xc], edi
lea ecx, [ebp - 0x20]
lea eax, [esi + 0x14]
mov dword [ebp - 8], 5
mov edx, dword [ebp - 4]
mov edx, dword [edx + eax]
xor edx, dword [eax]
add eax, 4
mov dword [ecx], edx
add ecx, 4
dec dword [ebp - 8]
jne 0x4308d8
and dword [ebp - 4], 0
cmp dword [0x4c0a50], 0
je 0x43094f
mov eax, dword [0x4c0a48]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push 5
pop ecx
lea esi, [eax + 0x160]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x34]
push eax
mov dword [ebp - 0x4c], 0x32716572
lea edi, [ebp - 0x48]
push 0x18
rep movsd dword es:[edi], dword [esi]
pop edx
lea ecx, [ebp - 0x4c]
call fcn.0043857e
push 5
pop ecx
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x34]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x430953
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [0x4c0a50]
jne 0x4308fa
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
jmp 0x43095c
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
test eax, eax
jne 0x43096c
push str.No_such_torrent
jmp 0x4309f5
push 0x14
add eax, 0x160
push eax
call fcn.0042c348
and dword [ebx + 0x99], 0
lea ecx, [esi + 0x28]
push ecx
push ecx
lea eax, [edi + 9]
push 0xe
mov dword [ebx + 0x95], eax
or byte [ebx + 0xe], 0x40
push eax
call fcn.004341ed
movzx eax, word [esi + 0x34]
mov ecx, eax
shr ecx, 8
shl eax, 8
movzx ecx, cx
movzx eax, ax
or ecx, eax
cmp dword [esi + 0x28], 0
jne 0x4309ee
cmp dword [esi + 0x2c], 0
jne 0x4309ee
cmp ecx, 0x200
ja 0x4309ee
mov al, byte [esi + 0x33]
mov byte [edi], al
test al, 2
je 0x4309dd
test byte [0x4b3261], 4
jne 0x4309d8
test al, 1
jne 0x4309dd
mov byte [edi], 2
jmp 0x4309e1
and al, 1
mov byte [edi], al
add ecx, 2
mov dword [ebx + 0x180], ecx
mov al, 1
jmp 0x4309fc
push str.Error_in_DH_header_3
mov ecx, ebx
call fcn.0042ffee
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x4341ed
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
je 0x434275
push ebp
push ebx
push esi
push edi
push eax
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
movzx eax, byte [ebp]
movzx ebx, byte [ebp + 1]
mov edi, dword [esp + 0x24]
inc al
add ebp, 2
lea edx, [edx + esi - 1]
mov dword [esp], edx
movzx ecx, byte [ebp + eax]
sub edi, esi
jmp 0x43422d
add ebx, ecx
and ebx, 0xff
movzx edx, byte [ebp + ebx]
mov byte [ebp + ebx], cl
mov byte [ebp + eax], dl
add edx, ecx
and edx, 0xff
movzx edx, byte [ebp + edx]
add eax, 1
and eax, 0xff
xor dl, byte [esi]
movzx ecx, byte [ebp + eax]
cmp esi, dword [esp]
mov byte [esi + edi], dl
lea esi, [esi + 1]
jb 0x43422d
dec eax
pop ecx
mov byte [ebp - 1], bl
mov byte [ebp - 2], al
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x435349
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
mov esi, ecx
push 0x7c
push esi
call sub.MSVCRT.dll_wcschr
pop ecx
pop ecx
test eax, eax
jne 0x43535d
lea eax, [esi - 2]
lea ecx, [eax + 2]
pop esi
jmp fcn.0043a258
Function at 0x438c94
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
call fcn.00404ac1
test al, al
je 0x438cc6
push dword [esi + 0xc]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
call esi
push eax
call esi
push eax
push str._I.in_addr.arpa
call fcn.0043b73c
pop ecx
pop ecx
jmp 0x438da5
push edi
xor eax, eax
lea edi, [ebp - 0x13]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push 0x48e0c0
movsd dword es:[edi], dword [esi]
call fcn.0043b7af
mov esi, eax
movzx eax, byte [esi]
push eax
movzx eax, byte [esi + 1]
push eax
movzx eax, byte [esi + 2]
push eax
movzx eax, byte [esi + 3]
push eax
movzx eax, byte [esi + 4]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 7]
push eax
movzx eax, byte [esi + 8]
push eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 0xb]
push eax
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xf]
push eax
movzx eax, byte [esi + 0x10]
push eax
movzx eax, byte [esi + 0x11]
push eax
movzx eax, byte [esi + 0x12]
push eax
movzx eax, byte [esi + 0x13]
push eax
movzx eax, byte [esi + 0x14]
push eax
movzx eax, byte [esi + 0x15]
push eax
movzx eax, byte [esi + 0x16]
push eax
movzx eax, byte [esi + 0x17]
push eax
movzx eax, byte [esi + 0x18]
push eax
movzx eax, byte [esi + 0x19]
push eax
movzx eax, byte [esi + 0x1a]
push eax
movzx eax, byte [esi + 0x1b]
push eax
movzx eax, byte [esi + 0x1c]
push eax
movzx eax, byte [esi + 0x1d]
push eax
movzx eax, byte [esi + 0x1e]
push eax
movzx eax, byte [esi + 0x1f]
push eax
push str._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c._c.ip6.arpa
call fcn.0043b73c
add esp, 0x8c
mov ecx, esi
mov edi, eax
call fcn.004433ab
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x439cf8
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
call fcn.00439cb2
cmp byte [0x4c3bb0], 0
mov ebx, eax
je 0x439d45
mov eax, dword [0x4c3bb4]
cmp eax, 0xffffffff
je 0x439d45
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x439d47
push edi
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
jmp 0x439d47
xor esi, esi
mov ecx, dword [esi + 0xc]
call fcn.004433ab
mov dword [esi + 0xc], ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x439d57
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
call fcn.00439ca3
cmp byte [0x4c3bb0], 0
mov ebx, eax
je 0x439da4
mov eax, dword [0x4c3bb4]
cmp eax, 0xffffffff
je 0x439da4
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x439da6
push edi
push 0x20
call sub.MSVCRT.dll_malloc
pop ecx
push 8
mov esi, eax
pop ecx
xor eax, eax
mov edi, esi
push esi
rep stosd dword es:[edi], eax
push dword [0x4c3bb4]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
jmp 0x439da6
xor esi, esi
mov ecx, dword [esi + 0xc]
call fcn.004433ab
mov dword [esi + 0xc], ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x4402d0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push 0
push 2
push 2
mov ebx, ecx
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
jne 0x440313
test dword [0x4c8324], 0x800000
je 0x44030c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
call fcn.004875bd
pop ecx
pop ecx
xor al, al
jmp 0x4403d2
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea ecx, [ebp - 4]
push ecx
push 4
push 0xffff
push eax
mov dword [ebp - 4], 1
call edi
test eax, eax
jne 0x440376
push 0x76c
call fcn.00440206
push eax
lea ecx, [ebp - 0x20]
call fcn.004385f0
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0042a13c
test eax, eax
je 0x44037a
test dword [0x4c8324], 0x800000
je 0x440376
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.004875bd
pop ecx
pop ecx
xor al, al
jmp 0x4403d1
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.255.255.250
call esi
push 0x48f758
mov dword [ebp - 0xc], eax
call esi
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
push 0
push dword [ebx + 4]
call edi
pop esi
test eax, eax
je 0x4403c8
test dword [0x4c8324], 0x800000
je 0x4403c8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
call fcn.004875bd
pop ecx
pop ecx
mov ecx, ebx
call fcn.004285ed
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x4403d5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
xor esi, esi
push esi
push 2
push 2
mov edi, ecx
call dword [sym.imp.WS2_32.dll_socket]
push esi
mov dword [edi + 4], eax
call fcn.00440206
push eax
lea ecx, [ebp - 0x28]
call fcn.004385f0
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.0042a13c
test eax, eax
je 0x440433
test dword [0x4c8324], 0x800000
je 0x44042c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.004875bd
pop ecx
pop ecx
xor al, al
jmp 0x4404e8
push 4
lea eax, [ebp - 0x10]
push eax
push 9
push esi
push dword [edi + 4]
mov dword [ebp - 0x10], esi
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
call esi
test eax, eax
je 0x44046d
test dword [0x4c8324], 0x800000
je 0x44046d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
call fcn.004875bd
pop ecx
pop ecx
push 4
lea eax, [ebp - 4]
push eax
push 4
push 0
push dword [edi + 4]
mov dword [ebp - 4], 0xff
call esi
test eax, eax
je 0x4404a6
test dword [0x4c8324], 0x800000
je 0x4404a6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
call fcn.004875bd
pop ecx
pop ecx
push 4
lea eax, [ebp - 4]
push eax
push 0xa
push 0
push dword [edi + 4]
mov dword [ebp - 4], 0xff
call esi
test eax, eax
je 0x4404df
test dword [0x4c8324], 0x800000
je 0x4404df
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
call fcn.004875bd
pop ecx
pop ecx
mov ecx, edi
call fcn.004285ed
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x4404ec
Capabilities:
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 2
pop eax
push dword [ebp + 8]
mov word [ebp - 0x10], ax
mov eax, 0x6c07
mov esi, ecx
mov word [ebp - 0xe], ax
call dword [sym.imp.WS2_32.dll_htonl]
push 0x10
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x62
push str.M_SEARCH__HTTP_1.1_r_nHOST:_239.255.255.250:1900_r_nST:upnp:rootdevice_r_nMAN:_ssdp:discover__r_nMX:3_r_n_r_n
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setg cl
pop edi
mov al, cl
pop esi
leave
ret 4
Function at 0x441d30
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp byte [ebp + 0x10], 0
push ebx
push esi
mov ebx, edx
push edi
mov dword [ebp - 4], ebx
mov esi, ecx
mov edi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789__
jne 0x441d4e
mov edi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mov eax, ebx
push 3
shl eax, 2
xor edx, edx
pop ecx
div ecx
mov dword [ebp + 0x10], reloc.WS2_32.dll_accept
mov ecx, eax
add ecx, 5
cmp byte [ebp + 0xc], 0
je 0x441d80
mov eax, ebx
push 0x16
xor edx, edx
pop ebx
div ebx
and dword [ebp + 0x10], 0
mov ebx, dword [ebp - 4]
lea ecx, [ecx + eax + 2]
call fcn.0044394c
mov ecx, eax
mov dword [ebp + 0xc], ecx
lea ebx, [esi + ebx - 3]
jmp 0x441df0
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shl edx, 8
add edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
add edx, eax
mov eax, edx
shr eax, 0x12
mov al, byte [eax + edi]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
mov al, byte [eax + edi]
mov byte [ecx + 1], al
mov eax, edx
shr eax, 6
and eax, 0x3f
mov al, byte [eax + edi]
and edx, 0x3f
mov byte [ecx + 2], al
mov al, byte [edx + edi]
add esi, 3
mov byte [ecx + 3], al
add ecx, 4
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0xf
jne 0x441df0
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
inc ecx
inc ecx
and dword [ebp + 0x10], 0
cmp esi, ebx
jbe 0x441d90
lea eax, [ebx + 2]
cmp esi, eax
jne 0x441e1a
movzx edx, byte [esi]
shl edx, 4
mov eax, edx
shr eax, 6
mov al, byte [eax + edi]
and edx, 0x3f
mov byte [ecx], al
mov al, byte [edx + edi]
mov byte [ecx + 1], al
mov byte [ecx + 2], 0x3d
jmp 0x441e4f
inc ebx
cmp esi, ebx
jne 0x441e59
movzx edx, byte [esi]
movzx eax, byte [esi + 1]
shl edx, 8
add edx, eax
shl edx, 2
mov eax, edx
shr eax, 0xc
mov al, byte [eax + edi]
mov byte [ecx], al
mov eax, edx
shr eax, 6
and eax, 0x3f
mov al, byte [eax + edi]
and edx, 0x3f
mov byte [ecx + 1], al
mov al, byte [edx + edi]
mov byte [ecx + 2], al
mov byte [ecx + 3], 0x3d
add ecx, 4
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 0
jle 0x441e68
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
inc ecx
inc ecx
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edx, ecx
sub edx, eax
pop edi
mov dword [esi], edx
pop esi
mov byte [ecx], 0
pop ebx
leave
ret 0xc

Function at 0x44217c
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4c31f0], ecx
xor ecx, ecx
inc ecx
mov eax, 0x4c31f0
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x4c3bac
jl 0x44218b
mov dword [0x4b43b0], ecx
pop esi
ret
Function at 0x44226f
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x4b43b0]
cmp eax, 0x270
jl 0x44232e
push esi
push edi
xor edx, edx
mov esi, SysReAllocString
mov ecx, edx
shl ecx, 2
mov eax, dword [ecx + 0x4c31f4]
xor eax, dword [ecx + 0x4c31f0]
and eax, esi
xor eax, dword [ecx + 0x4c31f0]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x4b43b4]
xor eax, dword [ecx + 0x4c3824]
inc edx
cmp edx, 0xe3
mov dword [ecx + 0x4c31f0], eax
jl 0x442288
cmp edx, 0x26f
jge 0x442300
lea ecx, [edx*4 + 0x4c31f0]
mov eax, dword [ecx]
lea edx, [ecx + 4]
xor eax, dword [edx]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + 0x4b43b4]
xor edi, dword [edx - 0x390]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
mov ecx, edx
cmp ecx, 0x4c3bac
jl 0x4422d3
mov ecx, dword [0x4c3bac]
mov eax, dword [0x4c31f0]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x4b43b4]
pop edi
xor eax, dword [0x4c3820]
pop esi
mov dword [0x4c3bac], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x4c31f0]
inc eax
mov dword [0x4b43b0], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret

Function at 0x4430c2
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
push edi
mov esi, ecx
xor eax, eax
lea ebx, [esi + 4]
mov edi, ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edx, str.UuidCreateSequential
mov ecx, 0x4972a0
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
call fcn.00444ab7
test eax, eax
je 0x443104
lea ecx, [ebp - 0x1c]
push ecx
call eax
test eax, eax
jne 0x443104
lea esi, [ebp - 0x12]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, dword [ebp - 4]
xor edi, edi
push edi
push edi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [esi + 0xa]
push eax
push edi
push edi
push 0x49729c
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
push ebx
push 0xe
pop edx
mov ecx, esi
call fcn.0043857e
push ebx
push 0xa
pop edx
mov ecx, ebx
call fcn.0043857e
lea eax, [ebp - 0x30]
push eax
push 4
pop edx
mov ecx, esi
call fcn.0043857e
xor eax, eax
mov ecx, dword [ebp + eax - 0x30]
add dword [ebx + eax], ecx
add eax, 4
cmp eax, 0x14
jne 0x443147
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4431f5
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
and dword [eax], 0
push ebx
push esi
push dword [ebp + 0xc]
mov esi, edx
mov dword [ebp - 8], esi
mov dword [ebp - 4], ecx
call fcn.00445069
mov ebx, eax
test ebx, ebx
je 0x4432f8
cmp byte [ebx], 0x64
push edi
jne 0x4432f5
cmp dword [esi], 0x39
jb 0x4432f5
push 0x11
pop ecx
mov edi, str.d10:.fileguard40:
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x443254
push 0x11
pop ecx
mov edi, str.d10:file_guard40:
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4432f5
push 0xa
pop ecx
lea esi, [ebx + 0x11]
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
push 0x28
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x34], 0
call fcn.00414197
test al, al
jne 0x44327b
mov eax, str.malformed_guard
jmp 0x4432b6
mov esi, dword [ebp - 8]
add dword [esi], 0xffffffc8
mov eax, dword [esi]
dec eax
push eax
lea eax, [ebx + 0x39]
push eax
lea eax, [ebx + 1]
push eax
call sub.MSVCRT.dll_memmove
mov edx, dword [esi]
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
mov ecx, ebx
call fcn.0043857e
push 5
pop ecx
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x30]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x4432f5
mov eax, str.hash_doesnt_match
push dword [ebp - 4]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.004875bd
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.004875bd
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, 0x4972d8
call fcn.00442f8d
push 0
push eax
push dword [ebp - 4]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
lea ecx, [ebp + 8]
call fcn.0043a24c
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x44348b
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov esi, edx
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4434c0
xor ecx, ecx
cmp dword [esp + 0x10], ecx
je 0x4434a6
inc ecx
cmp dword [esp + 0x14], 0
je 0x4434b0
or ecx, 2
test eax, ecx
je 0x4434c0
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [esp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
pop edi
pop esi
ret 0xc

Function at 0x4434d1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0
push edx
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4434f3
mov edx, dword [ebp - 4]
mov dword [ecx], edx
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
leave
ret 4
Function at 0x444146
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push edi
push str.ReplaceFileW
push 0x48ffa0
mov edi, edx
mov dword [ebp - 8], ecx
xor esi, esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 4], eax
test eax, eax
je 0x444206
push dword [0x4c280c]
call sub.MSVCRT.dll_srand
call sub.MSVCRT.dll_rand
push eax
push edi
push str._s._u.tmp
mov esi, 0x104
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0043b5e6
push edi
push str._s.new
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.0043b5e6
add esp, 0x28
push 0
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0
push 0
push 2
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
push edi
call dword [ebp - 4]
mov esi, eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x444206
push 4
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
xor eax, eax
test esi, esi
pop edi
setne al
pop esi
leave
ret

Function at 0x444ade
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp word [edi], 0x22
jne 0x444af3
inc edi
inc edi
push 0x22
lea eax, [edi + 2]
push eax
jmp 0x444af6
push 0x20
push edi
call sub.MSVCRT.dll_wcschr
mov esi, eax
pop ecx
xor ebx, ebx
pop ecx
test esi, esi
je 0x444b0f
movzx ebx, word [esi]
xor eax, eax
mov word [esi], ax
inc esi
inc esi
push 5
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
test esi, esi
je 0x444b27
mov word [esi - 2], bx
pop edi
pop esi
pop ebx
ret

Function at 0x444bc0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push edi
mov esi, 0x104
or edi, 0xffffffff
push esi
lea edx, [ebp - 0x418]
mov dword [ebp - 4], edi
call fcn.004434fe
test al, al
jne 0x444bea
mov edx, edi
jmp 0x444c63
push esi
xor esi, esi
lea eax, [ebp - 0x210]
push eax
push esi
push esi
push esi
push esi
push esi
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x444be6
push 5
lea eax, [ebp - 0x210]
push str.FAT32
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x444c5d
push 3
lea eax, [ebp - 0x210]
push 0x497b2c
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x444c58
push 5
lea eax, [ebp - 0x210]
push str.FAT16
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x444c60
mov edi, 0x7ffa8000
mov dword [ebp - 4], esi
mov edx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x444ea9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
push edi
push 0x438
lea eax, [ebp - 0x43c]
push eax
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov ebx, eax
call fcn.00444e5c
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor edi, edi
test al, al
je 0x444f18
mov eax, str.Sysnative..explorer.exe
lea edx, [ebp + ebx*2 - 0x43c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, di
jne 0x444eeb
push 1
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x43c]
push eax
push edi
push edi
call esi
xor ecx, ecx
cmp eax, 0x20
setle cl
mov eax, ecx
cmp eax, edi
je 0x444f4f
mov eax, str.explorer.exe
lea edx, [ebp + ebx*2 - 0x43c]
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
cmp cx, di
jne 0x444f26
push 1
push edi
push dword [ebp - 4]
lea eax, [ebp - 0x43c]
push eax
push edi
push edi
call esi
xor ecx, ecx
cmp eax, 0x20
setle cl
mov eax, ecx
xor ecx, ecx
cmp eax, edi
pop edi
sete cl
pop esi
mov al, cl
pop ebx
leave
ret

Function at 0x4450ec
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
and dword [ebp - 4], 0
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov edi, ecx
call fcn.00444795
movzx ebx, al
mov eax, 0x492538
test ebx, ebx
je 0x445117
mov eax, str..new
push eax
push edi
push 0x48df60
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0043b5e6
add esp, 0x14
push 7
pop edx
lea ecx, [ebp - 0x210]
call fcn.00444392
mov esi, eax
cmp esi, 0xffffffff
jne 0x44514b
xor al, al
jmp 0x4451b3
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, esi
call fcn.004443fc
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor esi, esi
cmp ebx, esi
je 0x44519e
mov edx, edi
lea ecx, [ebp - 0x210]
call fcn.00444146
movzx eax, al
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x44519e
push esi
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [ebp + 8], esi
jne 0x4451b1
cmp dword [ebp - 4], esi
jne 0x4451ac
cmp ebx, esi
jne 0x4451b1
xor eax, eax
inc eax
jmp 0x4451b3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4