joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bbb6
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
pushal
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
test eax, eax
jle 0x46bc25
test ecx, ecx
jle 0x46bc25
cmp dword [ebp + 8], 0
jl 0x46bc25
cmp dword [ebp + 0xc], 0
jl 0x46bc25
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], cx
sub ax, 1
sub cx, 1
mov bx, word [ebp + 8]
mov word [ebp - 8], bx
add ax, bx
mov word [ebp - 4], ax
mov bx, word [ebp + 0xc]
mov word [ebp - 6], bx
add cx, bx
mov word [ebp - 2], cx
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 0x18]
cmp word [eax], 0
je 0x46bc25
lea edx, [ebp - 8]
push edx
push 0
push ecx
push eax
push dword [0x4011fc]
call dword [sym.imp.kernel32.dll_WriteConsoleOutputW]
popal
leave
ret 0x14

Function at 0x46c210
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
pushal
cmp dword [0x401448], 0
je 0x46c293
cmp dword [0x40147c], 5
jle 0x46c293
mov dword [ebp - 0x54], 0x54
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0x190
lea edx, [ebp - 0x40]
nop
call fcn.0046c260
push esp
add byte [ebp], ah
jb 0x46c254
insd dword es:[edi], dx
add byte [ecx], ch
outsb dx, byte [esi]
add byte [ecx], ah
insb byte es:[edi], dx
add byte [eax], al
add byte [edx - 1], dl
push edx
call dword [sym.imp.kernel32.dll_lstrcpyW]

Function at 0x46c298
Capabilities:
Packed with generic packer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
cmp dword [0x401448], 0
je 0x46c2ee
pushal
mov dword [ebp - 0x60], 0x60
lea edx, [ebp - 0x60]
push edx
push dword [0x4011fc]
call dword [0x401454]
mov ecx, 0x10
mov esi, 0x401014
lea edi, [ebp - 0x40]
lodsd eax, dword [esi]
stosd dword es:[edi], eax
sub ecx, 1
jne 0x46c2cc
add word [ebp - 0x4e], 1
add word [ebp - 0x4c], 1
lea edx, [ebp - 0x60]
push edx
push dword [0x4011fc]
call dword [0x401458]
popal
leave
ret
Function at 0x46c960
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ecx
push edx
mov dword [ebp - 0x10], 0xffffffff
push 0x1000
call fcn.0046bf2c
mov dword [ebp - 8], eax
push 0x104
push eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
test eax, eax
je 0x46cacf
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x46cacf
mov dword [ebp - 0xc], eax
mov eax, 0x20
neg eax
push 2
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46cac6
push 0x1000
push dword [ebp - 8]
call fcn.0046bfb4
push 0
lea edx, [ebp - 4]
push edx
push 0x20
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x46cac6
push 0x4040ba
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_lstrcmpW]
test eax, eax
jne 0x46cac6
mov eax, 0x30
neg eax
push 2
push 0
push eax
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46cac6
push 0x1000
push dword [ebp - 8]
call fcn.0046bfb4
push 0
lea edx, [ebp - 4]
push edx
push 0x10
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x46cac6
push dword [ebp - 8]
call dword [sym.imp.shlwapi.dll_StrToIntW]
add eax, eax
push eax
add eax, 0x30
push eax
add eax, 0x104
push eax
call fcn.0046bf2c
mov dword [ebp - 0x10], eax
pop ecx
neg ecx
push 2
push 0
push ecx
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_SetFilePointer]
pop ecx
cmp eax, 0xffffffff
jne 0x46ca9f
push dword [ebp - 0x10]
call fcn.0046bf99
mov dword [ebp - 0x10], 0xffffffff
jmp 0x46cac6
push 0
lea edx, [ebp - 4]
push edx
push ecx
push dword [ebp - 0x10]
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_ReadFile]
cmp eax, 0
jne 0x46cac6
push dword [ebp - 0x10]
call fcn.0046bf99
mov dword [ebp - 0x10], 0xffffffff
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 8]
call fcn.0046bf99
mov eax, dword [ebp - 0x10]
pop edx
pop ecx
leave
ret

Function at 0x46cc6b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ecx
push edx
mov dword [ebp - 4], 0xffffffff
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x46ccd6
mov dword [ebp - 8], eax
push 2
push 0
push 0
push eax
call dword [sym.imp.kernel32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x46cccd
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_lstrlenW]
add eax, eax
push 0
lea edx, [ebp - 4]
push edx
push eax
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_WriteFile]
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edx
pop ecx
leave
ret 8
Function at 0x46ccdf
Capabilities:
Create thread
Create udp socket
Get local ipv4 addresses
Get socket information
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ecx
push edx
mov dword [0x4051dc], 0
push 0x469420
push 0x202
call dword [sym.imp.ws2_32.dll_WSAStartup]
cmp eax, 0
jne 0x46cd0f
cmp byte [0x469420], 2
jge 0x46cd19
mov eax, 0xffffffff
jmp 0x46ce66
push 0x11
push 2
push 2
call dword [sym.imp.ws2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x46cd47
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, dword [0x405158]
push eax
pop dword [edx + 0x44]
add edx, 0x58
mov eax, 0xffffffff
jmp 0x46ce66
mov dword [0x4051dc], eax
mov dword [0x405208], 1
push 0x405208
push 0x8004667e
push eax
call dword [sym.imp.ws2_32.dll_ioctlsocket]
cmp eax, 0xffffffff
jne 0x46cd89
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, dword [0x405158]
push eax
pop dword [edx + 0x44]
add edx, 0x58
mov eax, 0xffffffff
jmp 0x46ce66
mov word [0x469410], 2
push 0
call dword [sym.imp.ws2_32.dll_htonl]
mov dword [0x469414], eax
push dword [0x4051e0]
call dword [sym.imp.ws2_32.dll_htons]
mov word [0x469412], ax
mov dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x18]
push edx
push 0x469410
push dword [0x4051dc]
call dword [sym.imp.ws2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x46cdec
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, dword [0x405158]
push eax
pop dword [edx + 0x44]
add edx, 0x58
mov eax, 0xffffffff
jmp 0x46ce66
push 0x10
lea edx, [ebp - 0x10]
push edx
call fcn.0046bfb4
mov dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x18]
push edx
lea edx, [ebp - 0x10]
push edx
push dword [0x4051dc]
call dword [sym.imp.ws2_32.dll_getsockname]
cmp eax, 0xffffffff
jne 0x46ce31
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov edx, dword [0x405158]
push eax
pop dword [edx + 0x44]
add edx, 0x58
mov eax, 0xffffffff
jmp 0x46ce66
mov dword [0x405200], 1
lea edx, [ebp - 0x14]
push edx
push 0
push 0
push 0x46ced6
push 0
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
xor eax, eax
mov ax, word [ebp - 0xe]
push eax
call dword [sym.imp.ws2_32.dll_ntohs]
pop edx
pop ecx
leave
ret
Function at 0x46cfa8
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [0x405200], 1
jne 0x46d03c
cmp dword [0x4051e4], 0x3e8
jge 0x46d030
mov dword [ebp - 0x20], 0x10
push 0x10
lea edx, [ebp - 0x10]
push edx
call fcn.0046bfb4
push 0xffff
push dword [ebp - 0x24]
call fcn.0046bfb4
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
push 0
push 0xffff
push dword [ebp - 0x24]
push dword [0x4051dc]
call dword [sym.imp.ws2_32.dll_recvfrom]
cmp eax, 0
jle 0x46d030
mov ebx, dword [ebp - 0x24]
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
add eax, 1
add eax, eax
push eax
call fcn.0046bf2c
mov edi, eax
push ecx
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
call fcn.0046cfa8
or dword [eax], eax
and byte [eax], al
or eax, 0xa00
add byte [edi - 1], dl
push edi
call dword [sym.imp.shlwapi.dll_StrTrimW]
push edi
call dword [sym.imp.shlwapi.dll_StrTrimW]
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
cmp eax, 0
je 0x46d030
mov dword [ebp - 0x14], eax
mov ebx, dword [0x405168]
cmp dword [ebx + 4], 0
je 0x46cfcf
mov ebx, dword [ebx + 4]
jmp 0x46cfc4
mov dword [ebx], edi
push 0xc
call fcn.0046bf2c
mov dword [ebx + 4], eax
push dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push edx
call fcn.0046d1e2
push 0
push 0
call fcn.00472ece
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call 0x46d012
and eax, 0x20007300
add byte [0x20006400], ah
add byte [ebx], dh
and byte [eax], al
and eax, 0x20006400
add byte [0x39002e00], ah
add byte [eax + eax], ah
add bh, bh
jne 0x46cffd
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0x14
push dword [ebp - 0x18]
call fcn.00472ced
mov dword [ebx + 8], eax
add dword [0x4051e4], 1
push 1
call fcn.0046bc54
jmp 0x46cefe
push dword [ebp - 0x24]
call fcn.0046bf99
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret
Function at 0x46d012
Capabilities:
Receive data
Receive data on socket

Disassembly:
cmp dword [0x405200], 1
jne 0x46d03c
cmp dword [0x4051e4], 0x3e8
jge 0x46d030
mov dword [ebp - 0x20], 0x10
push 0x10
lea edx, [ebp - 0x10]
push edx
call fcn.0046bfb4
push 0xffff
push dword [ebp - 0x24]
call fcn.0046bfb4
lea edx, [ebp - 0x20]
push edx
lea edx, [ebp - 0x10]
push edx
push 0
push 0xffff
push dword [ebp - 0x24]
push dword [0x4051dc]
call dword [sym.imp.ws2_32.dll_recvfrom]
cmp eax, 0
jle 0x46d030
mov ebx, dword [ebp - 0x24]
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov ecx, eax
add eax, 1
add eax, eax
push eax
call fcn.0046bf2c
mov edi, eax
push ecx
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_MultiByteToWideChar]
call fcn.0046cfa8
or dword [eax], eax
and byte [eax], al
or eax, 0xa00
add byte [edi - 1], dl
push edi
call dword [sym.imp.shlwapi.dll_StrTrimW]
push edi
call dword [sym.imp.shlwapi.dll_StrTrimW]
push edi
call dword [sym.imp.kernel32.dll_lstrlenW]
cmp eax, 0
je 0x46d030
mov dword [ebp - 0x14], eax
mov ebx, dword [0x405168]
cmp dword [ebx + 4], 0
je 0x46cfcf
mov ebx, dword [ebx + 4]
jmp 0x46cfc4
mov dword [ebx], edi
push 0xc
call fcn.0046bf2c
mov dword [ebx + 4], eax
push dword [ebp - 0x1c]
lea edx, [ebp - 0x10]
push edx
call fcn.0046d1e2
push 0
push 0
call fcn.00472ece
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call 0x46d012
and eax, 0x20007300
add byte [0x20006400], ah
add byte [ebx], dh
and byte [eax], al
and eax, 0x20006400
add byte [0x39002e00], ah
add byte [eax + eax], ah
add bh, bh
jne 0x46cffd
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0x14
push dword [ebp - 0x18]
call fcn.00472ced
mov dword [ebx + 8], eax
add dword [0x4051e4], 1
push 1
call fcn.0046bc54
jmp 0x46cefe
push dword [ebp - 0x24]
call fcn.0046bf99
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push ecx
push edx
push dword [ebp + 8]
call fcn.0046d18f
cmp eax, 0xffffffff
je 0x46d188
push 0x10
lea edx, [ebp - 0x10]
push edx
call fcn.0046bfb4
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov word [ebp - 0x10], 2
push dword [ebp + 0xc]
call dword [sym.imp.ws2_32.dll_htons]
mov word [ebp - 0xe], ax
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp + 0x10]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, eax
add ecx, 1
push ecx
call fcn.0046bf2c
mov ebx, eax
push 0
push 0
push ecx
push ebx
push 0xffffffffffffffff
push dword [ebp + 0x10]
push 0
push 0xfde9
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
cmp eax, 0
jle 0x46d182
push 0x10
lea edx, [ebp - 0x10]
push edx
push 0
push eax
push ebx
push dword [0x4051dc]
call dword [sym.imp.ws2_32.dll_sendto]
push ebx
call fcn.0046bf99
pop edx
pop ecx
pop ebx
leave
ret 0xc
Function at 0x46d18f
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ecx
push edx
push 0x20
lea edx, [ebp - 0x20]
push edx
call fcn.0046bfb4
mov dword [ebp - 0x1c], 2
mov dword [ebp - 0x18], 2
mov dword [ebp - 0x14], 0x11
lea edx, [ebp - 0x24]
push edx
lea edx, [ebp - 0x20]
push edx
push 0
push dword [ebp + 8]
call dword [sym.imp.ws2_32.dll_GetAddrInfoW]
cmp eax, 0
jne 0x46d1d7
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x18]
jmp 0x46d1dc
mov eax, 0xffffffff
pop edx
pop ecx
leave
ret 4
Function at 0x46d941
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push eax
push ebx
push ecx
push edx
push edi
lea ebx, [ebp - 0x18]
mov ecx, 4
push ebx
call fcn.00475ad4
push 0x2c
call fcn.004768c5
add ebx, 4
sub ecx, 1
jne 0x46d954
push ebx
call fcn.0046ebe3
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.0046da2c
test eax, eax
je 0x46da18
mov dword [ebp - 4], eax
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0x2e1
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
mov ecx, eax
add ecx, 1
push ecx
call fcn.0046bf2c
mov edi, eax
push 0
push 0
push ecx
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
push 0
push 0x2e1
call dword [sym.imp.kernel32.dll_WideCharToMultiByte]
sub eax, 1
mov ebx, eax
push dword [ebp - 4]
call fcn.0046bf99
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x46da18
push eax
push 0
lea edx, [ebp - 4]
push edx
push ebx
push edi
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop eax
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call fcn.0046bf99
mov eax, dword [ebp - 4]
mov edx, dword [0x405158]
push eax
pop dword [edx + 0x44]
add edx, 0x58
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret
Function at 0x46e4ce
Capabilities:
Execute command
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push ecx
push edx
push esi
push edi
push 0x4000
call fcn.0046bf2c
mov dword [ebp - 0x14], eax
add eax, 0x1000
mov dword [ebp - 0x10], eax
add eax, 0x1000
mov dword [ebp - 0xc], eax
add eax, 0x1000
mov dword [ebp - 8], eax
mov esi, dword [ebp + 8]
Function at 0x46faea
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push eax
push ebx
push ecx
push edx
push edi
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 0
call fcn.0047452b
mov esi, dword [0x4051d8]
cmp dword [0x405198], 3
je 0x46fb44
cmp dword [0x405198], 0xb
je 0x46fb44
cmp dword [0x405198], 8
jne 0x46fb37
cmp eax, 0xe1
jl 0x46fb37
cmp eax, 0xf4
jle 0x46fb44
cmp dword [0x405198], 0xa
jne 0x46fc7b
lea edx, [ebp - 0x10]
push edx
call fcn.0046ebe3
mov ebx, dword [ebp - 0x10]
push ebx
call dword [sym.imp.shlwapi.dll_PathFindExtensionW]
push 0x404048
push eax
call dword [sym.imp.kernel32.dll_lstrcmpiW]
cmp eax, 0
jne 0x46fb6f
mov dword [ebp - 8], 1
call fcn.00472d2d
cmp word [esi], 0x2c
jne 0x46fb7f
add esi, 2
jmp 0x46fb95
lea edx, [ebp - 4]
push edx
call fcn.00475ad4
cmp dword [ebp - 4], 0
jle 0x46fb7f
mov ebx, dword [ebp - 0x10]
call fcn.0046fbb6
or dword [eax], eax
and byte [eax], al
and al, byte [eax]
daa
add byte [eax], al
add byte [ebx - 1], dl
push ebx
call dword [sym.imp.shlwapi.dll_StrTrimW]
lea edx, [ebp - 4]
push edx
call fcn.00475ad4
call fcn.00472d2d
cmp word [esi], 0x2c
jne 0x46fc9b
add esi, 2
lea edx, [ebp - 0xc]
push edx
call fcn.00475ad4
cmp dword [ebp - 4], 0
jle 0x46fb7f
mov eax, dword [ebp - 4]
mov ebx, dword [0x405184]
test eax, eax
jl 0x46fb7f
call fcn.0046c3bb
test eax, eax
jl 0x46fda8
mov eax, dword [ebx + 8]
cmp eax, 0
jne 0x46fce9
mov eax, dword [ebp - 0xc]
or eax, 7
test eax, eax
jl 0x46fb7f
push eax
push 0
push dword [ebx]
call dword [sym.imp.winmm_PlaySoundW]
jmp 0x46fda8
cmp eax, 1
jne 0x46fda8
mov eax, dword [ebp - 0xc]
mov edi, dword [0x40519c]
push eax
push dword [ebp - 4]
push 0x40444c
push edi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 0
push edi
call dword [sym.imp.winmm_mciSendStringW]
mov eax, dword [ebx]
mov ebx, dword [0x4051a0]
push eax
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
push eax
call dword [sym.imp.shlwapi.dll_PathQuoteSpacesW]
push dword [ebp - 4]
push ebx
push 0x4043ec
push edi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0x10
push 0
push 0
push 0
push edi
call dword [sym.imp.winmm_mciSendStringW]
pop eax
cmp eax, 1
jne 0x46fd5f
mov edx, 0x40443c
jmp 0x46fd8d
cmp eax, 2
jne 0x46fd6b
mov edx, 0x404484
jmp 0x46fd8d
cmp eax, 3
jne 0x46fd77
mov edx, 0x40445e
jmp 0x46fd8d
cmp eax, 4
jne 0x46fd83
mov edx, 0x404470
jmp 0x46fd8d
cmp eax, 1
jge 0x46fd8d
mov edx, 0x40442c
push dword [ebp - 4]
push edx
push edi
call dword [sym.imp.user32.dll_wsprintfW]
add esp, 0xc
push 0
push 0
push 0
push edi
call dword [sym.imp.winmm_mciSendStringW]
Function at 0x46fbb6
Capabilities:
Get file size
Read file on windows

Disassembly:
call fcn.0046c3dc
push 0
push 0
push 0
call dword [sym.imp.winmm_PlaySoundW]
jmp 0x46fda8
push ebx
call dword [sym.imp.shlwapi.dll_StrTrimW]
push ebx
call dword [sym.imp.kernel32.dll_lstrlenW]
test eax, eax
je 0x46fb7f
cmp dword [ebp - 8], 1
jne 0x46fbe5
add eax, 1
add eax, eax
push eax
call fcn.0046bf2c
mov edi, eax
push ebx
push eax
call dword [sym.imp.kernel32.dll_lstrcpyW]
jmp 0x46fc4e
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push ebx
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x46fda8
mov ebx, eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x46fc28
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, 0xffffffff
jmp 0x46fda8
push eax
add eax, 0x104
push eax
call fcn.0046bf2c
mov edi, eax
pop eax
push 0
push 0x405208
push eax
push edi
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov ebx, dword [0x405184]
call fcn.0046c3bb
cmp eax, 0xffffffff
je 0x46fc68
push dword [ebx]
call fcn.0046bf99
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
mov dword [ebx], edi
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
jmp 0x46fda8
mov edx, dword [0x405158]
push eax
pop dword [edx + 0x44]
add edx, 0x58
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret
Function at 0x46fe69
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push eax
push ebx
push ecx
push edx
push edi
mov dword [ebp - 8], 0
lea edx, [ebp - 0x1c]
push edx
call fcn.00475ad4
push 0x2c
call fcn.004768c5
lea edx, [ebp - 0x18]
push edx
call fcn.00475ad4
push 0x2c
call fcn.004768c5
call fcn.0047452b
mov esi, dword [0x4051d8]
cmp dword [0x405198], 3
je 0x46fedc
cmp dword [0x405198], 0xb
je 0x46fedc
cmp dword [0x405198], 8
jne 0x46fecf
cmp eax, 0xe1
jl 0x46fecf
cmp eax, 0xf4
jle 0x46fedc
cmp dword [0x405198], 0xa
jne 0x46ff94
lea edx, [ebp - 0xc]
push edx
call fcn.0046ebe3
push 0
push pe_nt_image_headers32
push 3
push 0
push 0
push 0x80000000
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x470057
mov ebx, eax
push 0
push eax
call dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [ebp - 4], eax
push eax
call fcn.0046bf2c
mov dword [ebp - 8], eax
push 0
push 0x405208
push dword [ebp - 4]
push eax
push ebx
call dword [sym.imp.kernel32.dll_ReadFile]
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
mov edi, dword [ebp - 8]
mov eax, dword [edi + 8]
mov ebx, dword [edi + 0xc]
mov edx, eax
imul edx, ebx
test edx, edx
jl 0x470057
cmp dword [ebp - 0x1c], 0
jl 0x46ff5b
cmp dword [ebp - 0x18], 0
jge 0x46ff74
mov edx, dword [0x405158]
push eax
pop dword [edx + 0x44]
add edx, 0x58
push ebx
pop dword [edx + 0x44]
add edx, 0x58
jmp 0x470057
add edi, 0x10
push edi
push ebx
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0046bbb6
mov eax, dword [0x405208]
jmp 0x470057
lea edx, [ebp - 0x14]
push edx
call fcn.00475ad4
push 0x2c
call fcn.004768c5
lea edx, [ebp - 0x10]
push edx
call fcn.00475ad4
push 0x2c
call fcn.004768c5
lea edx, [ebp - 0xc]
push edx
call fcn.0046ebe3
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
test eax, eax
jle 0x470057
test ecx, ecx
jle 0x470057
cmp dword [ebp - 0x1c], 0
jl 0x470057
cmp dword [ebp - 0x18], 0
jl 0x470057
imul eax, ecx
lea eax, [eax*4 + 0x10]
mov dword [ebp - 4], eax
push eax
call fcn.0046bf2c
mov dword [ebp - 8], eax
mov edi, eax
push esi
lea esi, [ebp - 0x1c]
mov ecx, 4
rep movsd dword es:[edi], dword [esi]
pop esi
push edi
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
call fcn.0046bb29
push 0
push pe_nt_image_headers32
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 0xc]
call dword [sym.imp.kernel32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x470057
push eax
push 0
push 0x405208
push dword [ebp - 4]
push dword [ebp - 8]
push eax
call dword [sym.imp.kernel32.dll_WriteFile]
pop eax
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [0x405208]
cmp dword [ebp - 8], 0
je 0x470065
push dword [ebp - 8]
call fcn.0046bf99
mov edx, dword [0x405158]
push eax
pop dword [edx + 0x44]
add edx, 0x58
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret
Function at 0x4706a5
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push eax
push ebx
push ecx
push edx
push edi
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.shlwapi.dll_PathFileExistsW]
mov ecx, 1
test eax, eax
je 0x4706f0
mov ebx, dword [ebp + 0xc]
mov edx, dword [0x40519c]
mov edi, dword [ebx + 0x44]
push ecx
push edx
push dword [ebp + 8]
call fcn.00472f42
mov eax, dword [0x405158]
cmp dword [eax + 0x44], 0xffffffff
je 0x4706f0
push edx
call fcn.00472ced
stosd dword es:[edi], eax
add ecx, 1
cmp ecx, dword [ebx + 0x50]
jl 0x4706cc
sub ecx, 1
mov edx, dword [0x405158]
push ecx
pop dword [edx + 0x44]
add edx, 0x58
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret 8

Function at 0x470709
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push eax
push ebx
push ecx
push edx
push edi
mov dword [ebp - 0x258], 0
mov eax, dword [ebp + 8]
mov ebx, dword [0x40519c]
push eax
push ebx
call dword [sym.imp.kernel32.dll_lstrcpyW]
nop
call fcn.0047073e
pop esp
add byte [edx], ch
add byte [eax], al
add byte [eax - 1], dl
push eax
call dword [sym.imp.kernel32.dll_lstrcatW]

Function at 0x47073e
Capabilities:
Enumerate files on windows

Disassembly:
push eax
call dword [sym.imp.kernel32.dll_lstrcatW]
lea edx, [ebp - 0x250]
push edx
push eax
call dword [sym.imp.kernel32.dll_FindFirstFileW]
mov dword [ebp - 0x254], eax
cmp eax, 0xffffffff
je 0x47079e
mov eax, dword [ebp + 0xc]
mov edi, dword [eax + 0x44]
mov edx, dword [ebp - 0x250]
and edx, 0x10
cmp edx, 0
jne 0x470786
lea eax, [ebp - 0x224]
push eax
call fcn.00472ced
stosd dword es:[edi], eax
add dword [ebp - 0x258], 1
lea edx, [ebp - 0x250]
push edx
push dword [ebp - 0x254]
call dword [sym.imp.kernel32.dll_FindNextFileW]
cmp eax, 0
jne 0x470764
mov edx, dword [0x405158]
push dword [ebp - 0x258]
pop dword [edx + 0x44]
add edx, 0x58
pop edi
pop edx
pop ecx
pop ebx
pop eax
leave
ret 8