joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c87e6
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
mov dword [eax], ebx
push 0x104
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 0x108], bl
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
je 0x4c8817
xor al, al
jmp 0x4c888f
push edi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
cmp edi, ebx
jne 0x4c882f
xor al, al
jmp 0x4c888e
mov eax, dword [edi + 0xc]
push esi
mov esi, dword [eax]
jmp 0x4c8879
lea eax, [ebp - 4]
push eax
push esi
call fcn.004c871a
test ebx, ebx
je 0x4c887f
mov eax, esi
call fcn.004c86e1
test al, al
je 0x4c8872
mov al, byte [esi]
test al, al
je 0x4c8872
cmp al, 0x7f
je 0x4c8872
cmp byte [ebp - 4], 0xff
jne 0x4c887f
cmp byte [ebp - 3], 0xff
jne 0x4c887f
cmp byte [ebp - 2], 0xff
jne 0x4c887f
cmp byte [ebp - 1], 0xff
jne 0x4c887f
mov eax, dword [edi + 0xc]
inc ebx
mov esi, dword [eax + ebx*4]
test esi, esi
jne 0x4c8837
jmp 0x4c8886
mov eax, dword [esi]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
test ebx, ebx
setg al
pop esi
pop edi
pop ebx
leave
ret 4

Function at 0x4c88cd
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push esi
call fcn.0044ce0f
lea eax, [ebp - 4]
push eax
call fcn.004c87e6
push 2
push 4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyaddr]
test eax, eax
mov esi, 0x104
jne 0x4c8928
push esi
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4c8928
push edi
mov eax, 0x5efaf4
call fcn.00401016
jmp 0x4c8940
push esi
push edi
push 0xffffffffffffffff
push dword [eax]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
and word [edi + 0x206], 0
pop esi
leave
ret

Function at 0x4c8943
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
lea eax, [ebp - 0x208]
push eax
xor ax, ax
call fcn.004c8894
movzx edi, ax
xor esi, esi
cmp di, si
jne 0x4c89ae
push 0x19
pop edi
push esi
lea eax, [ebp + 8]
push eax
push esi
push esi
push 0xf
lea eax, [ebp - 0x208]
push eax
mov dword [ebp + 8], esi
call sub.DNSAPI.dll_DnsQuery_W
test eax, eax
jne 0x4c89ae
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x4c89ae
mov edx, dword [eax + 0x18]
push 0x104
lea esi, [ebp - 0x208]
call fcn.004a8ff7
push 1
push dword [ebp + 8]
call sub.DNSAPI.dll_DnsRecordListFree
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp + 8]
push eax
call fcn.0044ce3b
mov eax, dword [ebp + 8]
push edi
mov word [ebx], 2
mov dword [ebx + 4], eax
call dword [sym.imp.WS2_32.dll_htons]
pop edi
pop esi
mov word [ebx + 2], ax
pop ebx
leave
ret 4
Function at 0x4c89db
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
movzx ebx, word [ebp + 8]
push esi
push 0x104
lea esi, [ebp - 0x104]
call fcn.004a8fd1
mov eax, esi
push 0x3a
push eax
call fcn.00591760
xor esi, esi
cmp eax, esi
pop ecx
pop ecx
je 0x4c8a1a
mov byte [eax], 0
inc eax
push eax
call fcn.00591545
pop ecx
movzx ebx, ax
lea eax, [ebp - 0x104]
push eax
mov word [edi], bx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [edi + 6], eax
je 0x4c8a3b
mov dword [edi + 2], 1
jmp 0x4c8a76
lea eax, [ebp - 0x104]
push eax
mov dword [edi + 2], esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
cmp eax, esi
je 0x4c8a76
mov ecx, dword [eax + 0xc]
cmp dword [ecx], esi
je 0x4c8a76
mov ecx, dword [edi + 2]
mov edx, dword [eax + 0xc]
shl ecx, 2
add edx, ecx
cmp dword [edx], esi
je 0x4c8a76
mov edx, dword [edx]
mov edx, dword [edx]
mov dword [ecx + edi + 6], edx
inc dword [edi + 2]
cmp dword [edi + 2], 4
jb 0x4c8a56
pop esi
pop ebx
leave
ret 4
Function at 0x4c8c5e
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [esi]
sub esp, 0x320
cmp eax, 0xffffffff
push ebx
push edi
je 0x4c8c77
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
je 0x4c8c90
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x4c8de7
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
push esi
mov dword [esi], eax
call fcn.0044ced6
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
mov ebx, 0xffff
push ebx
push dword [esi]
mov dword [ebp - 4], 0x40000
call edi
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
push ebx
push dword [esi]
mov dword [ebp - 4], 0x80000
call edi
mov edi, dword [ebp + 0x10]
cmp dword [edi + 4], 0xffffffff
mov dword [ebp - 4], 2
je 0x4c8dd4
push 0x10
push edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4c8d43
mov eax, dword [edi + 4]
mov dword [ebp + 0x14], eax
movzx ecx, byte [ebp + 0x17]
push ecx
movzx ecx, byte [ebp + 0x16]
push ecx
movzx ecx, ah
movzx eax, al
push ecx
push eax
lea eax, [ebp - 0x320]
push str._d._d._d._d
push eax
call fcn.00401000
movzx eax, word [edi + 2]
add esp, 0x18
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
mov eax, dword [ebp + 8]
and dword [eax], 0
jmp 0x4c8de7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x4c8dd4
mov eax, dword [esi]
lea ecx, [ebp - 0xc]
push ecx
lea ecx, [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x118]
xor edi, edi
xor ebx, ebx
push ecx
inc edi
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x21c], eax
push ebx
inc eax
push eax
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x220], edi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 8], 0x30d40
call dword [sym.imp.WS2_32.dll_select]
cmp eax, ebx
jg 0x4c8db8
jl 0x4c8dd4
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
call dword [eax]
test al, al
jne 0x4c8dd1
mov eax, 0xc8
cmp dword [ebp + 0x14], eax
jbe 0x4c8dd4
sub dword [ebp + 0x14], eax
jmp 0x4c8d54
lea eax, [ebp - 0x118]
push eax
push dword [esi]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x4c8dd4
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4c8de7
mov dword [ebp - 4], edi
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
or dword [esi], 0xffffffff
mov dword [eax], ecx
pop edi
pop ebx
leave
ret 0x10
Function at 0x4c8e6a
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
push esi
push edi
mov ecx, ebx
call dword [eax]
test al, al
jne 0x4c8f22
mov esi, dword [ebp + 0x10]
xor edi, edi
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, dword [ebp + 0x18]
jge 0x4c8f2d
cmp eax, edi
jge 0x4c8ec4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4c8eca
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop edi
pop esi
pop ebx
leave
ret 0x18
add dword [ebp + 0x14], eax
sub dword [ebp + 0x18], eax
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 0x110]
push eax
push edi
lea eax, [esi + 1]
push eax
mov dword [ebp - 8], edi
mov dword [ebp - 4], 0x30d40
mov dword [ebp - 0x10c], esi
mov dword [ebp - 0x110], 1
call dword [sym.imp.WS2_32.dll_select]
cmp eax, edi
jg 0x4c8f14
jne 0x4c8f10
mov eax, 0xc8
cmp dword [ebp + 0x1c], eax
jle 0x4c8eb4
sub dword [ebp + 0x1c], eax
jmp 0x4c8f14
cmp eax, edi
jl 0x4c8eb4
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test al, al
je 0x4c8e8c
mov eax, dword [ebp + 8]
mov dword [eax], 1
jmp 0x4c8ebd
mov eax, dword [ebp + 8]
mov dword [eax], edi
jmp 0x4c8ebd

Function at 0x4c8f34
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax]
test al, al
jne 0x4c8fa4
mov esi, dword [ebp + 0xc]
cmp esi, 0xffffffff
je 0x4c8fb1
xor eax, eax
lea ecx, [ebp - 8]
push ecx
push eax
push eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10c]
push eax
lea eax, [esi + 1]
push eax
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x10c], 1
mov dword [ebp - 4], 0x30d40
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x4c8fac
jl 0x4c8fac
mov eax, 0xc8
cmp dword [ebp + 0x10], eax
jbe 0x4c8fb1
sub dword [ebp + 0x10], eax
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax]
test al, al
je 0x4c8f4f
mov dword [edi], 1
jmp 0x4c8fb7
and dword [edi], 0
jmp 0x4c8fb7
mov dword [edi], 2
pop esi
mov eax, edi
pop ebx
leave
ret 0xc

Function at 0x4c8fbf
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x18]
xor eax, eax
cmp dword [ebp + 0x14], eax
push ebx
push edi
mov dword [ecx], eax
jne 0x4c8fd4
mov dword [esi], eax
jmp 0x4c9013
push dword [ebp + 0x1c]
mov ebx, dword [ebp + 0xc]
push ecx
mov eax, esp
push dword [ebp + 8]
lea edi, [ebp + 0x1c]
mov dword [eax], ebx
call fcn.004c8f34
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x4c8fd0
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4c900d
mov ecx, dword [ebp + 0x18]
and dword [esi], 0
mov dword [ecx], eax
jmp 0x4c9013
mov dword [esi], 2
pop edi
mov eax, esi
pop ebx
pop ebp
ret 0x18
Function at 0x4c906f
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
and dword [esi], 0
push ebx
mov ebx, dword [ebp + 0x10]
push edi
push dword [ebp + 0x18]
lea edi, [ebp + 0x18]
push ecx
mov eax, esp
push dword [ebp + 0xc]
mov dword [eax], ebx
call fcn.004c8f34
mov ecx, dword [ebp + 0x18]
test ecx, ecx
je 0x4c909b
mov eax, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x4c910b
mov edi, dword [sym.imp.WS2_32.dll_recv]
push 2
push 0x30
push dword [ebp + 0x14]
push ebx
call edi
test eax, eax
mov dword [ebp + 0x10], eax
jg 0x4c90bd
mov eax, dword [ebp + 8]
mov dword [eax], 2
jmp 0x4c910b
and dword [ebp + 0x18], 0
test eax, eax
mov dword [esi], eax
jbe 0x4c90fb
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x18]
mov cl, byte [edx + ecx]
test cl, cl
je 0x4c90eb
movsx eax, cl
push eax
push 0x5e5bbc
call fcn.00591760
test eax, eax
pop ecx
pop ecx
jne 0x4c90f5
mov eax, dword [ebp + 0x10]
inc dword [ebp + 0x18]
cmp dword [ebp + 0x18], eax
jb 0x4c90c7
jmp 0x4c90fb
mov eax, dword [ebp + 0x18]
inc eax
mov dword [esi], eax
push 0
push dword [esi]
push dword [ebp + 0x14]
push ebx
call edi
mov eax, dword [ebp + 8]
and dword [eax], 0
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x4d7e36
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
push esi
mov esi, ecx
mov ch, al
push edi
mov edi, dword [esi + 0x18]
push dword [esi + 0xc]
or dword [ebp - 0xe], 0xffffffff
xor ebx, ebx
mov dword [ebp - 0x38], 0x4d524f46
mov cl, ah
mov eax, dword [esi + 4]
imul edi, eax
mov word [ebp - 0x1e], cx
lea ecx, [edi + 0x2e]
bswap ecx
mov dword [ebp - 0x34], ecx
movzx cx, byte [esi + 0x10]
mov dh, cl
bswap eax
mov dword [ebp - 0x30], 0x46464941
mov dword [ebp - 0x2c], 0x4d4d4f43
mov dword [ebp - 0x28], 0x12000000
mov byte [ebp - 0x1c], 0x40
mov byte [ebp - 0x1b], bl
mov dl, ch
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0x1a], bl
mov byte [ebp - 0x19], bl
mov byte [ebp - 0x18], bl
mov byte [ebp - 0x17], bl
mov byte [ebp - 0x16], bl
mov byte [ebp - 0x15], bl
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov dword [ebp - 0x12], 0x444e5353
mov dword [ebp - 0xa], ebx
mov dword [ebp - 6], ebx
mov word [ebp - 0x24], dx
mov dword [ebp - 0x22], eax
call fcn.004d79cb
cmp byte [ebp + 8], bl
je 0x4d7ed2
add edi, 8
bswap edi
mov dword [ebp - 0xe], edi
push 0x36
lea eax, [ebp - 0x38]
push eax
add esi, 0x1c
push esi
call fcn.00402005
push 0x36
pop eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4d80a7
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x14c
movzx eax, word [ecx]
sub eax, 6
push ebx
mov ebx, dword [ebp + 0x7c]
push esi
push edi
mov dword [ebp + 0x58], 0x4d524f46
mov dword [ebp + 0x60], 0x43464941
mov dword [ebp + 0x64], 0x52455646
mov dword [ebp + 0x68], 0x4000000
mov dword [ebp + 0x6c], 0x405180a2
je 0x4d80ee
dec eax
je 0x4d80ea
xor esi, esi
jmp 0x4d80f1
push 5
jmp 0x4d80f0
push 4
pop esi
cmp esi, 4
mov ax, word [ecx + 2]
mov dword [ebp - 0xdc], 0x4d4d4f43
mov word [ebp - 0xd4], ax
je 0x4d8129
cmp esi, 5
je 0x4d8129
mov dx, word [ecx + 0xe]
movzx edi, dx
movzx eax, ax
imul edi, eax
mov word [ebp - 0xce], dx
sar edi, 3
jmp 0x4d813b
movzx edi, ax
shl edi, 4
mov word [ebp - 0xce], 0x10
sar edi, 4
xor edx, edx
mov eax, ebx
div edi
push dword [ecx + 4]
lea ecx, [ebp - 0xcc]
mov dword [ebp - 0xd2], eax
call fcn.004d79cb
mov eax, esi
shl eax, 2
mov ecx, dword [eax + str.NONEsowtfl32fl64alawulaw]
push dword [eax + 0x61c2a0]
lea eax, [ebp - 0xbe]
mov dword [ebp - 0xc2], ecx
call fcn.004d7a06
movzx ax, byte [ebp - 0xbe]
inc ax
movzx eax, ax
test al, 1
je 0x4d8189
inc eax
movzx eax, ax
add eax, 0x16
test bl, 1
lea esi, [eax + 8]
je 0x4d8198
inc ebx
lea ecx, [ebx + 8]
lea edx, [ecx + eax + 0x24]
bswap eax
bswap edx
mov dword [ebp - 0xd8], eax
mov ax, word [ebp - 0xd4]
mov dword [ebp + 0x5c], edx
mov dh, al
mov edi, dword [ebp + 0x78]
and dword [ebp + 0x54], 0
and dword [ebp + 0x50], 0
push 0xc
bswap ecx
mov dword [ebp + 0x48], 0x444e5353
mov dl, ah
mov eax, dword [ebp - 0xd2]
bswap eax
mov dword [ebp - 0xd2], eax
mov ax, word [ebp - 0xce]
mov dword [ebp + 0x4c], ecx
mov word [ebp - 0xd4], dx
mov dh, al
mov dl, ah
lea eax, [ebp + 0x58]
push eax
push edi
mov word [ebp - 0xce], dx
call fcn.00402005
push 0xc
lea eax, [ebp + 0x64]
push eax
push edi
call fcn.00402005
push esi
lea eax, [ebp - 0xdc]
push eax
push edi
call fcn.00402005
push 0x10
lea eax, [ebp + 0x48]
push eax
push edi
call fcn.00402005
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x4d8958
Capabilities:
Clear file content
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0xffffffff
push esi
push edi
je 0x4d8b48
push 0xc
lea eax, [ebp - 0x38]
push eax
push ebx
call fcn.00401f65
cmp eax, 0xc
jne 0x4d8b48
cmp dword [ebp - 0x38], 0x4d524f46
jne 0x4d8b48
cmp dword [ebp - 0x30], 0x46464941
je 0x4d89a5
cmp dword [ebp - 0x30], 0x43464941
jne 0x4d8b48
mov eax, dword [ebp - 0x34]
bswap eax
push ebx
mov dword [ebp - 0x34], eax
call fcn.004019d3
mov ecx, dword [ebp - 0x34]
add ecx, 8
cmp ecx, eax
jne 0x4d8b48
xor esi, esi
push ebx
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 8], esi
call fcn.004019d3
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
call fcn.004019a4
cmp edx, dword [ebp - 0x18]
ja 0x4d8b37
jb 0x4d89fc
cmp eax, dword [ebp - 0x1c]
jae 0x4d8b37
jmp 0x4d89fc
xor esi, esi
mov dword [ebp - 0x3c], esi
push ebx
lea edi, [ebp - 0x58]
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x58], 0x20336469
mov dword [ebp - 0x54], 0x20334449
mov dword [ebp - 0x50], 0x454d414e
mov dword [ebp - 0x4c], 0x48545541
mov dword [ebp - 0x48], 0x20296328
mov dword [ebp - 0x44], 0x4f4e4e41
mov dword [ebp - 0x40], 0x4b52414d
call fcn.004d7869
test al, al
je 0x4d8b37
push ebx
call fcn.004019a4
mov ecx, dword [ebp - 0x28]
add eax, 0xfffffff8
adc edx, 0xffffffff
mov esi, ecx
and esi, 1
lea esi, [esi + ecx + 8]
xor edi, edi
mov dword [ebp - 0xc], esi
add esi, eax
adc edi, edx
cmp dword [ebp - 0x24], eax
jne 0x4d8aa1
cmp dword [ebp - 0x20], edx
jne 0x4d8aa1
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
add eax, 4
adc ecx, 0
push ecx
push eax
mov eax, ebx
mov byte [ebp + 0xb], 1
call fcn.00401976
mov eax, dword [ebp - 0xc]
add dword [ebp - 8], eax
mov eax, dword [ebp - 8]
bswap eax
push ebx
call fcn.00447515
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
jmp 0x4d8ab4
mov ecx, dword [ebp - 0xc]
add ecx, 0xfffffff8
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
push edx
push eax
mov eax, ebx
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], edi
call fcn.00401976
mov ecx, esi
add ecx, 1
mov eax, edi
adc eax, 0
cmp eax, dword [ebp - 0x18]
ja 0x4d8b0f
jb 0x4d8ad9
cmp ecx, dword [ebp - 0x1c]
jae 0x4d8b0f
cmp byte [ebp + 0xb], 0
jne 0x4d8aea
push ebx
mov eax, 0x4b4e554a
call fcn.00447515
push edi
push esi
mov eax, ebx
call fcn.00401976
push ebx
call fcn.004019a4
cmp edx, dword [ebp - 0x18]
jb 0x4d89fa
ja 0x4d8b37
cmp eax, dword [ebp - 0x1c]
jb 0x4d89fa
jmp 0x4d8b37
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.004019d3
sub eax, 8
mov esi, eax
push 0
push 4
mov eax, ebx
bswap esi
call fcn.00401976
push ebx
mov eax, esi
call fcn.00447515
mov eax, dword [ebx]
cmp eax, 0xffffffff
je 0x4d8b48
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebx], 0xffffffff
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4df494
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x2224
call fcn.0059fbd0
push ebx
push esi
push edi
lea eax, [esp + 0x28]
push eax
call fcn.00401b1f
lea eax, [esp + 0x28]
or ebx, 0xffffffff
push eax
lea esi, [esp + 0x14]
mov dword [esp + 0x14], ebx
call fcn.0044759e
push dword [ebp + 8]
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
push ecx
mov eax, esp
mov dword [eax], esi
call fcn.004df6f5
test al, al
jne 0x4df50c
cmp esi, ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4df4f3
push esi
call edi
mov dword [esp + 0x10], ebx
mov esi, ebx
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp esi, ebx
je 0x4df505
push esi
call edi
mov al, 1
jmp 0x4df5cc
mov ecx, dword [esp + 0x1b]
mov eax, dword [esp + 0x23]
mov ebx, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
add eax, ecx
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push esi
call ebx
push dword [ebp + 0xc]
lea esi, [esp + 0x10]
call fcn.00401fa9
push ecx
mov ecx, dword [esp + 0x10]
mov eax, esp
lea esi, [esp + 0x1c]
lea edi, [esp + 0x18]
mov dword [eax], ecx
call fcn.004ddd9c
test al, al
je 0x4df55b
mov eax, dword [esp + 0x1b]
mov ecx, dword [esp + 0x14]
add eax, ecx
add eax, dword [esp + 0x23]
jmp 0x4df55d
xor eax, eax
xor ecx, ecx
push ecx
push ecx
push ecx
push eax
push dword [esp + 0x1c]
call ebx
mov esi, 0x2000
jmp 0x4df583
push eax
lea eax, [esp + 0x234]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00402005
push esi
lea eax, [esp + 0x234]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00401f65
test eax, eax
jne 0x4df570
cmp dword [esp + 0xc], 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4df5ad
push dword [esp + 0xc]
call esi
cmp dword [esp + 0x10], 0xffffffff
je 0x4df5ba
push dword [esp + 0x10]
call esi
push dword [ebp + 0xc]
lea eax, [esp + 0x2c]
push eax
call fcn.004a2025
test al, al
setne al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e1b7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x61c
push ebx
push esi
push dword [ebp + 8]
lea esi, [edi + 0x414]
mov dword [edi], eax
call fcn.00401fa9
or dword [edi + 0x418], 0xffffffff
xor ebx, ebx
lea eax, [edi + 4]
push eax
mov eax, dword [ebp + 8]
mov byte [edi + 0x41c], bl
mov byte [edi + 0x41d], bl
mov byte [edi + 0x41e], bl
mov dword [edi + 0x41f], ebx
mov dword [edi + 0x423], ebx
mov dword [edi + 0x427], ebx
call fcn.00401016
cmp dword [esi], 0xffffffff
jne 0x4e1be1
mov byte [edi + 0x41c], 1
jmp 0x4e1c76
push ebx
push ebx
mov eax, esi
call fcn.00401976
lea ecx, [edi + 4]
lea esi, [ebp - 0x414]
call fcn.004a2d7d
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str..tmp
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
lea esi, [edi + 0x20c]
push esi
call fcn.004a2dab
push esi
lea esi, [edi + 0x418]
call fcn.0044759e
test al, al
je 0x4e1bd5
mov eax, dword [edi]
push 0x104
push 0x5dadf4
push 0x5f3554
call fcn.00436f6c
mov edx, eax
lea esi, [ebp - 0x61c]
call fcn.004a8ff7
mov eax, esi
push eax
call fcn.00590243
cmp eax, ebx
mov dword [edi + 0x423], eax
sete al
pop ecx
mov byte [edi + 0x41e], al
pop esi
mov eax, edi
pop ebx
leave
ret 4

Function at 0x4e6f33
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x460
push esi
push edi
mov edi, 0x624ae0
mov eax, edi
lea esi, [ebp - 0x460]
call fcn.00401d9a
jmp 0x4e6feb
lea eax, [ebp - 0x430]
push eax
push edi
lea eax, [ebp - 0x20c]
push eax
call fcn.00401f2d
lea eax, [ebp - 0x20c]
push eax
call fcn.00401b98
test al, al
je 0x4e6fe0
lea ecx, [ebp - 0x20c]
call fcn.004e6dfd
movzx eax, ax
cmp ax, 0xfffe
je 0x4e6fe0
movzx esi, ax
cmp word [esi*2 + 0x624ce8], 0
ja 0x4e6fe0
cmp byte [esi + 0x644ce8], 0
jne 0x4e6fe0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4e6fcc
and al, 1
je 0x4e6fcc
push 0x80
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov byte [esi + 0x654ce8], 0
lea esi, [ebp - 0x460]
call fcn.00401dd7
cmp dword [ebp - 0x460], 0xffffffff
jne 0x4e6f55
pop edi
pop esi
leave
ret

Function at 0x4e6ffd
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
cmp word [0x624ae0], 0
je 0x4e7025
mov ecx, str..aud
call fcn.004e6f33
mov ecx, str..grf
call fcn.004e6f33
mov ecx, str..audinfo
jmp fcn.004e6f33
ret

Function at 0x4e7026
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push edi
movzx esi, si
xor edi, edi
push dword [edi + 0x61c4a4]
lea eax, [ebp - 0x208]
push esi
push str._d_s
push eax
call fcn.00401000
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
push 0x624ae0
lea eax, [ebp - 0x410]
push eax
call fcn.00401f2d
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
add edi, 4
cmp edi, 0xc
jb 0x4e7035
mov byte [esi + 0x654ce8], 0
pop edi
leave
ret
Function at 0x4ed2a2
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
lea eax, [ebp - 0x22c]
call fcn.004016d4
lea eax, [ebp - 0x22c]
push eax
push 0x5f4078
mov esi, 0x104
lea edi, [ebp - 0x434]
call fcn.004a9039
mov eax, dword [ebx]
pop ecx
pop ecx
push 0
mov ecx, edi
push ecx
mov ecx, ebx
call dword [eax + 0x20]
or dword [ebp + 0xc], 0xffffffff
push 0xbb8
push dword [ebp + 0x10]
lea esi, [ebp + 0xc]
call fcn.004475d6
test al, al
jne 0x4ed32c
mov eax, dword [ebx]
push 0x5f4004
mov ecx, ebx
call dword [eax + 0x1c]
cmp dword [ebp + 0xc], 0xffffffff
mov esi, dword [ebp + 8]
mov dword [esi], 2
je 0x4ed325
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4ed40a
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
fldz
mov esi, dword [ebp + 0x10]
fstp qword [ebp - 0x18]
fld qword [0x60d1a8]
lea eax, [ebp + 0xc]
push eax
fstp qword [ebp - 0x10]
lea eax, [ebp - 0x20]
push eax
lea edi, [ebp - 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5c8684
call fcn.004ecdc9
mov esi, dword [eax]
test esi, esi
jne 0x4ed3e5
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x410]
cmp byte [ecx + 0xc], 0
jne 0x4ed3a4
fld qword [0x60d1a8]
lea ecx, [ebp + 0xc]
push ecx
fst qword [ebp - 0x18]
lea ecx, [ebp - 0x20]
fstp qword [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
mov esi, eax
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5c8684
call fcn.004ed1d4
mov esi, dword [eax]
test esi, esi
jne 0x4ed3e5
lea eax, [ebp + 0xc]
push eax
call fcn.004019d3
push 2
xor ecx, ecx
mov dword [ebp - 8], eax
pop eax
push ecx
push ecx
push ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push 4
lea eax, [ebp - 8]
push eax
lea eax, [ebp + 0xc]
push eax
call fcn.00402005
cmp eax, 4
je 0x4ed3e5
mov eax, dword [ebx]
push 0x5f4064
mov ecx, ebx
call dword [eax + 0x1c]
push 2
pop esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4ed3f4
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4ed405
push dword [ebp + 0x10]
mov eax, 0xbb8
call fcn.004a1fa0
mov eax, dword [ebp + 8]
mov dword [eax], esi
pop edi
pop esi
pop ebx
leave
ret 0xc