joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4318f6
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 + 0x1cc]
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 0x431920
and dword [ebp - 4], 0
cmp dword [0x4c3b78], 0
je 0x431997
mov eax, dword [0x4c3b70]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push 5
pop ecx
lea esi, [eax + 0x164]
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.0043961d
push 5
pop ecx
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x34]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x43199b
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [0x4c3b78]
jne 0x431942
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
jmp 0x4319a4
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
test eax, eax
jne 0x4319b4
push str.No_such_torrent
jmp 0x431a3d
push 0x14
add eax, 0x164
push eax
call fcn.0042d374
and dword [ebx + 0xa1], 0
lea ecx, [esi + 0x28]
push ecx
push ecx
lea eax, [edi + 9]
push 0xe
mov dword [ebx + 0x9d], eax
or byte [ebx + 0xe], 0x40
push eax
call fcn.00435232
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 0x431a36
cmp dword [esi + 0x2c], 0
jne 0x431a36
cmp ecx, 0x200
ja 0x431a36
mov al, byte [esi + 0x33]
mov byte [edi], al
test al, 2
je 0x431a25
test byte [0x4b6261], 4
jne 0x431a20
test al, 1
jne 0x431a25
mov byte [edi], 2
jmp 0x431a29
and al, 1
mov byte [edi], al
add ecx, 2
mov dword [ebx + 0x188], ecx
mov al, 1
jmp 0x431a44
push str.Error_in_DH_header_3
mov ecx, ebx
call fcn.00430fe7
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
je 0x4352ba
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 0x435272
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 0x435272
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 0x4363a7
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 0x4363bb
lea eax, [esi - 2]
lea ecx, [eax + 2]
pop esi
jmp fcn.0043b2f1
Function at 0x439d33
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
call fcn.00404a32
test al, al
je 0x439d65
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.0043c7d5
pop ecx
pop ecx
jmp 0x439e44
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 0x4900b8
movsd dword es:[edi], dword [esi]
call fcn.0043c848
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.0043c7d5
add esp, 0x8c
mov ecx, esi
mov edi, eax
call fcn.004444cc
mov eax, edi
pop edi
pop esi
leave
ret

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

Disassembly:
push ebx
push esi
call fcn.0043ad4b
cmp byte [0x4c6d08], 0
mov ebx, eax
je 0x43adde
mov eax, dword [0x4c6d0c]
cmp eax, 0xffffffff
je 0x43adde
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x43ade0
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
jmp 0x43ade0
xor esi, esi
mov ecx, dword [esi + 0xc]
call fcn.004444cc
mov dword [esi + 0xc], ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x43adf0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push esi
call fcn.0043ad3c
cmp byte [0x4c6d08], 0
mov ebx, eax
je 0x43ae3d
mov eax, dword [0x4c6d0c]
cmp eax, 0xffffffff
je 0x43ae3d
push eax
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov esi, eax
test esi, esi
jne 0x43ae3f
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 [0x4c6d0c]
call dword [sym.imp.KERNEL32.DLL_TlsSetValue]
pop edi
jmp 0x43ae3f
xor esi, esi
mov ecx, dword [esi + 0xc]
call fcn.004444cc
mov dword [esi + 0xc], ebx
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x441495
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 0x4414d8
test dword [0x4cb494], 0x800000
je 0x4414d1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_create_socket:__d
call fcn.004890f7
pop ecx
pop ecx
xor al, al
jmp 0x441597
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 0x44153b
push 0x76c
call fcn.004413cb
push eax
lea ecx, [ebp - 0x20]
call fcn.0043968f
lea eax, [ebp - 0x20]
push eax
mov ecx, ebx
call fcn.0042afd2
test eax, eax
je 0x44153f
test dword [0x4cb494], 0x800000
je 0x44153b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.004890f7
pop ecx
pop ecx
xor al, al
jmp 0x441596
push esi
mov esi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.255.255.250
call esi
push 0x491768
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 0x44158d
test dword [0x4cb494], 0x800000
je 0x44158d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
call fcn.004890f7
pop ecx
pop ecx
mov ecx, ebx
call fcn.00429469
mov al, 1
pop edi
pop ebx
leave
ret
Function at 0x44159a
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.004413cb
push eax
lea ecx, [ebp - 0x28]
call fcn.0043968f
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.0042afd2
test eax, eax
je 0x4415f8
test dword [0x4cb494], 0x800000
je 0x4415f1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.004890f7
pop ecx
pop ecx
xor al, al
jmp 0x4416ad
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 0x441632
test dword [0x4cb494], 0x800000
je 0x441632
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
call fcn.004890f7
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 0x44166b
test dword [0x4cb494], 0x800000
je 0x44166b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
call fcn.004890f7
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 0x4416a4
test dword [0x4cb494], 0x800000
je 0x4416a4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
call fcn.004890f7
pop ecx
pop ecx
mov ecx, edi
call fcn.00429469
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x4416b1
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 0x442f02
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 0x442f20
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 0x442f52
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.00444a40
mov ecx, eax
mov dword [ebp + 0xc], ecx
lea ebx, [esi + ebx - 3]
jmp 0x442fc2
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 0x442fc2
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
inc ecx
inc ecx
and dword [ebp + 0x10], 0
cmp esi, ebx
jbe 0x442f62
lea eax, [ebx + 2]
cmp esi, eax
jne 0x442fec
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 0x443021
inc ebx
cmp esi, ebx
jne 0x44302b
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 0x44303a
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 0x44329d
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4c6348], ecx
xor ecx, ecx
inc ecx
mov eax, 0x4c6348
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, 0x4c6d04
jl 0x4432ac
mov dword [0x4b73d0], ecx
pop esi
ret
Function at 0x443390
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x4b73d0]
cmp eax, 0x270
jl 0x44344f
push esi
push edi
xor edx, edx
mov esi, SysReAllocString
mov ecx, edx
shl ecx, 2
mov eax, dword [ecx + 0x4c634c]
xor eax, dword [ecx + 0x4c6348]
and eax, esi
xor eax, dword [ecx + 0x4c6348]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x4b73d4]
xor eax, dword [ecx + 0x4c697c]
inc edx
cmp edx, 0xe3
mov dword [ecx + 0x4c6348], eax
jl 0x4433a9
cmp edx, 0x26f
jge 0x443421
lea ecx, [edx*4 + 0x4c6348]
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 + 0x4b73d4]
xor edi, dword [edx - 0x390]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
mov ecx, edx
cmp ecx, 0x4c6d04
jl 0x4433f4
mov ecx, dword [0x4c6d04]
mov eax, dword [0x4c6348]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x4b73d4]
pop edi
xor eax, dword [0x4c6978]
pop esi
mov dword [0x4c6d04], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x4c6348]
inc eax
mov dword [0x4b73d0], 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 0x4441e3
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, 0x4993e0
mov dword [ebp - 4], esi
stosd dword es:[edi], eax
call fcn.00445bc7
test eax, eax
je 0x444225
lea ecx, [ebp - 0x1c]
push ecx
call eax
test eax, eax
jne 0x444225
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 0x4993dc
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
push ebx
push 0xe
pop edx
mov ecx, esi
call fcn.0043961d
push ebx
push 0xa
pop edx
mov ecx, ebx
call fcn.0043961d
lea eax, [ebp - 0x30]
push eax
push 4
pop edx
mov ecx, esi
call fcn.0043961d
xor eax, eax
mov ecx, dword [ebp + eax - 0x30]
add dword [ebx + eax], ecx
add eax, 4
cmp eax, 0x14
jne 0x444268
pop edi
pop esi
pop ebx
leave
ret
Function at 0x444316
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.00446176
mov ebx, eax
test ebx, ebx
je 0x444419
cmp byte [ebx], 0x64
push edi
jne 0x444416
cmp dword [esi], 0x39
jb 0x444416
push 0x11
pop ecx
mov edi, str.d10:.fileguard40:
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x444375
push 0x11
pop ecx
mov edi, str.d10:file_guard40:
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x444416
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.00414807
test al, al
jne 0x44439c
mov eax, str.malformed_guard
jmp 0x4443d7
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.0043961d
push 5
pop ecx
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x30]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x444416
mov eax, str.hash_doesnt_match
push dword [ebp - 4]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.004890f7
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.004890f7
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, 0x499418
call fcn.004440ae
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.0043b2e5
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4445ac
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 0x4445e1
xor ecx, ecx
cmp dword [esp + 0x10], ecx
je 0x4445c7
inc ecx
cmp dword [esp + 0x14], 0
je 0x4445d1
or ecx, 2
test eax, ecx
je 0x4445e1
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 0x44523a
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push esi
push edi
push str.ReplaceFileW
push 0x491fb0
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 0x4452fa
push dword [0x4c594c]
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.0043c67f
push edi
push str._s.new
lea eax, [ebp - 0x418]
push esi
push eax
call fcn.0043c67f
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 0x4452fa
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 0x445bee
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
cmp word [edi], 0x22
jne 0x445c03
inc edi
inc edi
push 0x22
lea eax, [edi + 2]
push eax
jmp 0x445c06
push 0x20
push edi
call sub.MSVCRT.dll_wcschr
mov esi, eax
pop ecx
xor ebx, ebx
pop ecx
test esi, esi
je 0x445c1f
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 0x445c37
mov word [esi - 2], bx
pop edi
pop esi
pop ebx
ret

Function at 0x445cd0
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.004445f2
test al, al
jne 0x445cfa
mov edx, edi
jmp 0x445d73
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 0x445cf6
push 5
lea eax, [ebp - 0x210]
push str.FAT32
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x445d6d
push 3
lea eax, [ebp - 0x210]
push 0x499c94
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x445d68
push 5
lea eax, [ebp - 0x210]
push str.FAT16
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x445d70
mov edi, 0x7ffa8000
mov dword [ebp - 4], esi
mov edx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x445fb9
Capabilities:
Create process on windows
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.00445f6c
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor edi, edi
test al, al
je 0x446028
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 0x445ffb
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 0x44605f
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 0x446036
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 0x4461f9
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.004458a5
movzx ebx, al
mov eax, 0x4945b8
test ebx, ebx
je 0x446224
mov eax, str..new
push eax
push edi
push 0x48ff58
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.0043c67f
add esp, 0x14
push 7
pop edx
lea ecx, [ebp - 0x210]
call fcn.00445486
mov esi, eax
cmp esi, 0xffffffff
jne 0x446258
xor al, al
jmp 0x4462c0
push dword [ebp + 8]
mov edx, dword [ebp - 8]
mov ecx, esi
call fcn.004454f0
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor esi, esi
cmp ebx, esi
je 0x4462ab
mov edx, edi
lea ecx, [ebp - 0x210]
call fcn.0044523a
movzx eax, al
mov dword [ebp - 4], eax
cmp eax, esi
jne 0x4462ab
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 0x4462be
cmp dword [ebp - 4], esi
jne 0x4462b9
cmp ebx, esi
jne 0x4462be
xor eax, eax
inc eax
jmp 0x4462c0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4