joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425cd0
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 + 0x188]
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 0x425cfa
and dword [ebp - 4], 0
cmp dword [0x48230c], 0
je 0x425d71
mov eax, dword [0x482304]
mov ecx, dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push 5
pop ecx
lea esi, [eax + 0x15c]
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.0042c98a
push 5
pop ecx
lea edi, [ebp - 0x20]
lea esi, [ebp - 0x34]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x425d75
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp eax, dword [0x48230c]
jne 0x425d1c
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
xor eax, eax
jmp 0x425d7e
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
test eax, eax
jne 0x425d8e
push str.No_such_torrent
jmp 0x425e17
push 0x14
add eax, 0x15c
push eax
call fcn.00421e68
and dword [ebx + 0x85], 0
lea ecx, [esi + 0x28]
push ecx
push ecx
lea eax, [edi + 9]
push 0xe
mov dword [ebx + 0x81], eax
or byte [ebx + 0xe], 0x40
push eax
call fcn.00428ebd
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 0x425e10
cmp dword [esi + 0x2c], 0
jne 0x425e10
cmp ecx, 0x200
ja 0x425e10
mov al, byte [esi + 0x33]
mov byte [edi], al
test al, 2
je 0x425dff
test byte [0x47a188], 4
jne 0x425dfa
test al, 1
jne 0x425dff
mov byte [edi], 2
jmp 0x425e03
and al, 1
mov byte [edi], al
add ecx, 2
mov dword [ebx + 0x148], ecx
mov al, 1
jmp 0x425e1e
push str.Error_in_DH_header_3
mov ecx, ebx
call fcn.00425624
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x428ebd
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
je 0x428f45
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 0x428efd
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 0x428efd
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 0x431ae0
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
push edi
push 0
push 2
push 2
mov esi, ecx
call dword [sym.imp.WS2_32.dll_socket]
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 [esi + 4], eax
mov dword [ebp - 4], 1
call edi
test eax, eax
je 0x431b21
xor al, al
jmp 0x431bbb
push 0x76c
call fcn.00431a59
push eax
lea ecx, [ebp - 0x20]
call fcn.0042c9fc
lea eax, [ebp - 0x20]
push eax
mov ecx, esi
call fcn.0041fe1e
test eax, eax
je 0x431b64
test dword [0x486524], 0x800000
je 0x431b1a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.0045c3cd
pop ecx
pop ecx
jmp 0x431b1a
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_inet_addr]
push str.239.255.255.250
call ebx
push 0x462980
mov dword [ebp - 0xc], eax
call ebx
push 8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xc
push 0
push dword [esi + 4]
call edi
pop ebx
test eax, eax
je 0x431bb2
test dword [0x486524], 0x800000
je 0x431bb2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_join_multicast_group:__d
call fcn.0045c3cd
pop ecx
pop ecx
mov ecx, esi
call fcn.0041e4f1
mov al, 1
pop edi
pop esi
leave
ret

Function at 0x431bbf
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.00431a59
push eax
lea ecx, [ebp - 0x28]
call fcn.0042c9fc
lea eax, [ebp - 0x28]
push eax
mov ecx, edi
call fcn.0041fe1e
test eax, eax
je 0x431c1d
test dword [0x486524], 0x800000
je 0x431c16
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Unable_to_bind_to_UPnP_port:__d
call fcn.0045c3cd
pop ecx
pop ecx
xor al, al
jmp 0x431cd2
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 0x431c57
test dword [0x486524], 0x800000
je 0x431c57
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_setup_socket_to_send_multicast_packets:__d
call fcn.0045c3cd
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 0x431c90
test dword [0x486524], 0x800000
je 0x431c90
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_unicast_TTL:__d
call fcn.0045c3cd
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 0x431cc9
test dword [0x486524], 0x800000
je 0x431cc9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.UPnP:_Could_not_set_multicast_TTL:__d
call fcn.0045c3cd
pop ecx
pop ecx
mov ecx, edi
call fcn.0041e4f1
mov al, 1
pop edi
pop esi
leave
ret
Function at 0x431cd6
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 0x43338b
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 0x4333a9
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 0x4333db
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.00434e42
mov ecx, eax
mov dword [ebp + 0xc], ecx
lea ebx, [esi + ebx - 3]
jmp 0x43344b
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 0x43344b
mov byte [ecx], 0xd
mov byte [ecx + 1], 0xa
inc ecx
inc ecx
and dword [ebp + 0x10], 0
cmp esi, ebx
jbe 0x4333eb
lea eax, [ebx + 2]
cmp esi, eax
jne 0x433475
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 0x4334aa
inc ebx
cmp esi, ebx
jne 0x4334b4
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 0x4334c3
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 0x4337d7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x4833b8], ecx
xor ecx, ecx
inc ecx
mov eax, 0x4833b8
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, 0x483d74
jl 0x4337e6
mov dword [0x47ae30], ecx
pop esi
ret

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

Disassembly:
mov eax, dword [0x47ae30]
cmp eax, 0x270
jl 0x433989
push esi
push edi
xor edx, edx
mov esi, bind
mov ecx, edx
shl ecx, 2
mov eax, dword [ecx + 0x4833bc]
xor eax, dword [ecx + 0x4833b8]
and eax, esi
xor eax, dword [ecx + 0x4833b8]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x47ae34]
xor eax, dword [ecx + 0x4839ec]
inc edx
cmp edx, 0xe3
mov dword [ecx + 0x4833b8], eax
jl 0x4338e3
cmp edx, 0x26f
jge 0x43395b
lea ecx, [edx*4 + 0x4833b8]
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 + 0x47ae34]
xor edi, dword [edx - 0x390]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
mov ecx, edx
cmp ecx, 0x483d74
jl 0x43392e
mov ecx, dword [0x483d74]
mov eax, dword [0x4833b8]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x47ae34]
pop edi
xor eax, dword [0x4839e8]
pop esi
mov dword [0x483d74], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x4833b8]
inc eax
mov dword [0x47ae30], 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 0x43463f
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
stosd dword es:[edi], eax
mov edi, str.rpcrt4.dll
mov edx, str.UuidCreateSequential
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.00435c3b
test eax, eax
jne 0x43467e
mov edx, str.UuidCreate
mov ecx, edi
call fcn.00435c3b
test eax, eax
je 0x434693
lea ecx, [ebp - 0x1c]
push ecx
call eax
test eax, eax
jne 0x434693
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 0x469244
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationA]
push ebx
push 0xe
pop edx
mov ecx, esi
call fcn.0042c98a
push ebx
push 0xa
pop edx
mov ecx, ebx
call fcn.0042c98a
lea eax, [ebp - 0x30]
push eax
push 4
pop edx
mov ecx, esi
call fcn.0042c98a
xor eax, eax
mov ecx, dword [ebp + eax - 0x30]
add dword [ebx + eax], ecx
add eax, 4
cmp eax, 0x14
jne 0x4346d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x43477c
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.00436140
mov ebx, eax
test ebx, ebx
je 0x43487d
cmp byte [ebx], 0x64
push edi
jne 0x43487a
cmp dword [esi], 0x39
jb 0x43487a
push 0x11
pop ecx
mov edi, str.d10:.fileguard40:
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4347db
push 0x11
pop ecx
mov edi, str.d10:file_guard40:
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x43487a
push 0xa
pop ecx
lea esi, [ebx + 0x11]
lea edi, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
lea edx, [ebp - 0x5c]
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x34], 0
call fcn.0040f079
test al, al
jne 0x434800
mov eax, str.malformed_guard
jmp 0x43483b
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.0042c98a
push 5
pop ecx
lea edi, [ebp - 0x1c]
lea esi, [ebp - 0x30]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
je 0x43487a
mov eax, str.hash_doesnt_match
push dword [ebp - 4]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.0045c3cd
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.0045c3cd
mov ecx, dword [ebp - 4]
add esp, 0x10
mov edx, 0x46928c
call fcn.0043450a
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.0042d71a
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4348ec
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push 1
push 0x483d78
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_InterlockedExchange]
test eax, eax
jne 0x43491e
lea eax, [esp + 4]
push eax
xor eax, eax
push eax
push esi
push 0x4348b1
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_CreateThread]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x3e8
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
pop ecx
ret
Function at 0x43581e
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [ebp - 0xc]
push eax
mov ebx, ecx
call esi
mov eax, dword [ebp - 8]
cmp eax, dword [0x483ffc]
jl 0x435863
jg 0x43584c
mov eax, dword [ebp - 0xc]
cmp eax, dword [0x483ff8]
jb 0x435863
fld qword [0x469ab8]
fcomp qword [0x47aeb0]
fnstsw ax
test ah, 0x44
jp 0x4358ea
push edi
mov edi, 0x483fcc
push edi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
push 0x483fe8
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
fild qword [0x483fe8]
lea eax, [ebp - 4]
push eax
fdiv qword [0x469ab0]
fstp qword [0x47aeb0]
call sub.MSVCRT.dll_time
pop ecx
lea eax, [ebp - 0xc]
push eax
call esi
push dword [0x483fec]
mov ecx, dword [ebp - 8]
push dword [0x483fe8]
mov eax, dword [ebp - 0xc]
push ecx
push eax
mov dword [0x483ff8], eax
mov dword [0x483ffc], ecx
call fcn.004010e0
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], edx
cdq
sub eax, dword [ebp - 0xc]
push edi
sbb edx, dword [ebp - 8]
mov dword [0x483ff0], eax
mov dword [0x483ff4], edx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
lea eax, [ebp - 0xc]
push eax
call esi
pop edi
push dword [0x483fec]
push dword [0x483fe8]
push dword [ebp - 8]
push dword [ebp - 0xc]
call fcn.004010e0
fild qword [ebp - 0xc]
add eax, dword [0x483ff0]
fdiv qword [0x47aeb0]
mov dword [ebx], eax
call fcn.00401066
push 0
push 0xf4240
push edx
push eax
call fcn.004012b0
mov dword [ebx + 4], eax
pop esi
xor eax, eax
pop ebx
leave
ret

Function at 0x435dbe
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.004349fe
test al, al
jne 0x435de8
mov edx, edi
jmp 0x435e61
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 0x435de4
push 5
lea eax, [ebp - 0x210]
push str.FAT32
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x435e5b
push 3
lea eax, [ebp - 0x210]
push 0x469adc
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
je 0x435e56
push 5
lea eax, [ebp - 0x210]
push str.FAT16
push eax
call sub.MSVCRT.dll__wcsnicmp
add esp, 0xc
test eax, eax
jne 0x435e5e
mov edi, 0x7ffa8000
mov dword [ebp - 4], esi
mov edx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x436065
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.00436018
mov esi, dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor edi, edi
test al, al
je 0x4360d4
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 0x4360a7
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 0x4360ed
push 1
push edi
push dword [ebp - 4]
push str.explorer.exe
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 0x4361fc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov eax, ecx
push esi
push edi
mov dword [ebp - 4], eax
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x43620c
sub eax, edx
sar eax, 1
mov ebx, eax
lea edi, [ebx + ebx + 2]
mov eax, edi
call section..text
mov esi, esp
push edi
push dword [ebp - 4]
mov dword [ebp - 8], esi
push esi
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0x5c
pop edi
cmp word [esi], di
jne 0x436259
cmp word [esi + 2], di
jne 0x436259
lea eax, [esi + 4]
cmp word [eax], 0x3f
jne 0x43626c
cmp word [esi + 6], di
jne 0x43626c
add esi, 8
cmp ebx, 3
jl 0x436268
cmp word [esi + 2], 0x3a
jne 0x436268
add esi, 6
mov ecx, esi
jmp 0x4362b2
push 2
pop ecx
mov esi, eax
movzx eax, word [esi]
inc esi
inc esi
cmp ax, di
jne 0x43627e
dec ecx
je 0x436268
test ax, ax
jne 0x436271
xor al, al
jmp 0x4362c1
push 0
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4362a3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x436283
cmp word [esi], 0
mov eax, edi
mov word [esi - 2], ax
je 0x4362bf
lea ecx, [esi + 2]
mov edx, edi
call fcn.0042d160
mov esi, eax
test esi, esi
jne 0x436287
mov al, 1
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4362c9
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push dword [ebp + 0x10]
mov edi, edx
push dword [ebp + 0xc]
mov ebx, ecx
call fcn.004356c8
test eax, eax
jne 0x436319
push esi
mov esi, dword [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x4362ff
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x436318
mov eax, dword [ebp + 0x10]
cmp eax, esi
je 0x436316
sub esi, eax
push esi
add eax, edi
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
xor eax, eax
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
Function at 0x436391
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x254
push ebx
mov eax, edx
push esi
mov ebx, ecx
push edi
mov edx, 0x469b64
mov ecx, eax
call fcn.0043511e
mov esi, eax
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov ecx, esi
mov edi, eax
call fcn.0043492c
cmp edi, 0xffffffff
je 0x43640d
cmp byte [ebp + 8], 0
jne 0x4363db
cmp word [ebp - 0x228], 0x2e
je 0x4363f4
lea ecx, [ebp - 0x228]
call fcn.004350be
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov ecx, ebx
call fcn.00436365
lea eax, [ebp - 0x254]
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4363cb
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x436ed3
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push ebx
push esi
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
mov ebx, ecx
mov ecx, dword [ebp + 8]
push eax
call fcn.0041d243
push dword [ebp - 4]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0x84]
push eax
push 0
push esi
push dword [ebp + 0xc]
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
jne 0x436f5f
cmp dword [ebx + 0x14], 0x20
jge 0x436f5f
push edi
lea ecx, [esi + 0x1b]
call fcn.00434e42
mov esi, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push ecx
push dword [ebp + 0xc]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
mov dword [eax + 0x14], ecx
add eax, 0x18
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx + 0x10]
mov ecx, dword [ebp - 4]
mov dword [ebx + eax*4 + 0x48], ecx
mov eax, dword [ebx + 0x10]
add esp, 0xc
inc eax
and eax, 0x1f
inc dword [ebx + 0x14]
mov dword [ebx + 0x10], eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x436f65
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
push esi
mov esi, ecx
cmp dword [esi + 0x14], 0
je 0x436fd2
push edi
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [ebp + 8]
cmp eax, dword [ebp + 0xc]
jae 0x436fd1
mov eax, dword [esi + 0x10]
sub eax, dword [esi + 0x14]
and eax, 0x1f
mov edi, dword [esi + eax*4 + 0x48]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x84]
push eax
mov ecx, edi
call fcn.0041d243
push dword [ebp - 4]
lea eax, [ebp - 0x84]
push eax
push 0
push dword [edi + 0x14]
lea eax, [edi + 0x18]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_sendto]
mov ecx, edi
call fcn.0043492c
dec dword [esi + 0x14]
cmp dword [esi + 0x14], 0
jne 0x436f78
pop edi
pop esi
leave
ret 8