joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406450
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x114], eax
push esi
push edi
mov ebx, ecx
xor eax, eax
mov byte [esp + 0x10], 0
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
mov ecx, ebx
mov dword [esp + 0x10], ebx
call fcn.00404b90
mov esi, eax
cmp esi, 0xffffffff
jne 0x4064d3
mov ecx, dword [ebx + 0x408]
mov edx, dword [ebp + 0x10]
push ecx
push edx
push str.1651
push 0x41c5c0
lea eax, [ebx + 0x200]
push eax
mov ecx, ebx
call fcn.00405f00
xor al, al
mov ecx, dword [esp + 0x11c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
xor edi, edi
jmp 0x4064e0
mov ecx, dword [ebp + 8]
push esi
push ecx
mov ecx, dword [esp + 0x14]
call fcn.00405a70
test al, al
jne 0x406530
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0x80
push 2
push 0
push 0
push 0x1f01ff
lea eax, [esp + 0x28]
push eax
call ebx
inc edi
cmp edi, 0x1e
mov esi, eax
jl 0x4064e0
cmp esi, 0xffffffff
je 0x40653c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x80
push 3
jmp loc.004ddc90

Function at 0x406af0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push str.A_FCVSDFVBASLEI_BMGldfl_643wSSDL____S
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x406b06
xor al, al
ret
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406b1e
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
ret

Function at 0x406bc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
jmp loc.004db580

Function at 0x406d90
Capabilities:
Check mutex on windows

Disassembly:
push ecx
mov eax, dword [0x41c270]
push esi
jmp loc.004df270

Function at 0x406e00
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process

Disassembly:
push ecx
mov eax, dword [0x41c270]
push 4
lea edx, [esp + 4]
push edx
push 4
push 0x418574
push 0x418564
push 0x80000002
mov dword [esp + 0x18], eax
call fcn.0040abb0
push str.A_FCVSDFVBASLEI_BMGldfl_643wSSDL____S
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
jne 0x406e3e
xor al, al
pop ecx
ret
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x406e56
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov al, 1
pop ecx
ret
Function at 0x406fe0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Terminate process

Disassembly:
push ecx
push esi
mov esi, ecx
call fcn.00406b30
mov ecx, esi
call fcn.00406e60
cmp eax, 1
jne 0x406ffe
mov ecx, esi
call fcn.00406d90
jmp 0x407046
test eax, eax
jne 0x40702c
push str.A_FCVSDFVBASLEI_BMGldfl_643wSSDL____S
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x407046
push 0x3e8
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x407046
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_ExitProcess]
cmp eax, 0xffffffff
jne 0x40703a
mov ecx, esi
call fcn.00406af0
jmp 0x407046
cmp eax, 0xfffffffe
jne 0x407046
mov ecx, esi
call fcn.00406e00
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x406ed0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
pop esi
pop ecx
ret

Function at 0x407070
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 0x10]
movzx ecx, word [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push edi
push eax
push ecx
push ebp
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x40709b
pop edi
pop ebp
pop ecx
ret
push ebx
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
jne 0x4070af
pop ebx
pop edi
pop ebp
pop ecx
ret
mov edx, dword [esp + 0x20]
push esi
push 0
push 0x80
push 2
push 0
push 2
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
jne 0x4070d9
pop esi
pop ebx
pop edi
pop ebp
pop ecx
ret
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
pop ecx
ret

Function at 0x407150
Capabilities:
Parse pe header

Disassembly:
mov eax, dword [esp + 4]
cmp word [eax], 0x5a4d
jne 0x40719c
mov ecx, dword [eax + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x40719c
mov ecx, dword [esp + 8]
mov dword [ecx], eax
cmp dword [eax], 0x4550
jne 0x40719c
mov edx, dword [esp + 0xc]
add eax, 4
mov dword [ecx], eax
add eax, 0x14
mov dword [edx], eax
cmp word [eax], 0x10b
jne 0x40719c
mov ecx, dword [esp + 0x10]
add eax, 0xe0
mov dword [ecx], eax
mov eax, 1
ret
xor eax, eax
ret
Function at 0x4071a0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
cmp word [edi], 0x5a4d
mov dword [esp + 0x10], 0
jne 0x4071de
mov eax, dword [edi + 0x3c]
mov ecx, dword [eax + edi]
add eax, edi
cmp ecx, 0x4550
jne 0x4071de
cmp dword [eax], 0x4550
jne 0x4071e2
add eax, 4
lea ecx, [eax + 0x14]
mov dword [esp + 0x20], ecx
jmp 0x4071e2
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ecx, dword [edx + 0x88]
test ecx, ecx
je 0x4072a1
test byte [eax + 0x12], 1
jne 0x4072a1
add ecx, edi
mov eax, 1
test eax, eax
jne 0x407212
jmp 0x4dcc28
mov edx, dword [ecx + 4]
add edx, 0xfffffff8
xor eax, eax
shr edx, 1
test edx, edx
mov dword [esp + 0x18], eax
lea esi, [ecx + 8]
mov dword [esp + 0x14], eax
jbe 0x407284
jmp 0x407230
xor eax, eax
mov ax, word [esi]
mov ebx, eax
and ebx, 0xf000
cmp ebx, 0x3000
jne 0x407270
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x20]
inc ebx
mov dword [esp + 0x10], ebx
mov ebx, dword [ecx]
and eax, 0xfff
add eax, ebx
mov ebx, dword [eax + edi]
sub ebx, dword [ebp + 0x1c]
cmp ebx, dword [esp + 0x24]
jne 0x407270
cmp word [eax + edi - 2], 0x5c7
je 0x40728c
mov eax, dword [esp + 0x14]
inc eax
add esi, 2
cmp eax, edx
mov dword [esp + 0x14], eax
jb 0x407230
mov eax, dword [esp + 0x18]
add ecx, dword [ecx + 4]
jmp 0x407205
mov eax, dword [eax + edi + 4]
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0x1c]
pop edi
pop esi
pop ebp
sub eax, edx
pop ebx
add esp, 0xc
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret

Function at 0x4073f0
Capabilities:
Stop service

Disassembly:
sub esp, 0x1c
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x40743b
mov eax, dword [esp + 0x24]
push ebx
push esi
jmp loc.004e4540
pop edi
add esp, 0x1c
ret

Function at 0x407440
Capabilities:
Start service

Disassembly:
push edi
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x407485
mov eax, dword [esp + 8]
push ebx
push esi
push 0x10010
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov esi, eax
test esi, esi
je 0x407480
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push esi
call ebx
push edi
call ebx
pop esi
pop ebx
pop edi
ret
Function at 0x407490
Capabilities:
Contain obfuscated stackstrings
Get common file path
Set file attributes
Start service

Disassembly:
sub esp, 0x38
mov eax, dword [0x41f608]
mov dword [esp + 0x34], eax
mov al, 0x72
mov cl, 0x44
mov dl, 0x5c
mov byte [esp + 2], al
mov byte [esp + 6], al
mov al, 0x73
push esi
push 0x42019c
mov byte [0x42019c], 0x50
mov byte [0x42019d], 0x43
mov byte [0x42019e], 0x49
mov byte [0x42019f], cl
mov byte [0x4201a0], 0x75
mov byte [0x4201a1], 0x6d
mov byte [0x4201a2], 0x70
mov byte [0x4201a3], 0
mov byte [esp + 8], dl
mov byte [esp + 9], cl
mov byte [esp + 0xb], 0x69
mov byte [esp + 0xc], 0x76
mov byte [esp + 0xd], 0x65
mov byte [esp + 0xf], al
mov byte [esp + 0x10], dl
mov byte [esp + 0x11], 0x50
mov byte [esp + 0x12], 0x43
mov byte [esp + 0x13], 0x49
mov byte [esp + 0x14], cl
mov byte [esp + 0x15], 0x75
mov byte [esp + 0x16], 0x6d
mov byte [esp + 0x17], 0x70
mov byte [esp + 0x18], 0x2e
mov byte [esp + 0x19], al
mov byte [esp + 0x1a], 0x79
mov byte [esp + 0x1b], al
mov byte [esp + 0x1c], 0
call fcn.004073f0
add esp, 4
push 0x104
push 0x420070
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 4]
push eax
push 0x420070
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
push 0x420070
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x40]
push 0x420070
push 0x418308
push 0xc9
push ecx
call fcn.00407070
add esp, 0x10
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x4075d9
push ebp
push edi
jmp loc.004dd3f8
mov ecx, dword [esp + 0x38]
xor eax, eax
pop esi
call fcn.0040e486
add esp, 0x38
ret
Function at 0x4075f0
Capabilities:
Contain obfuscated stackstrings
Get common file path
Set file attributes
Start service

Disassembly:
sub esp, 0x38
mov eax, dword [0x41f608]
mov dword [esp + 0x34], eax
mov al, 0x72
push ebx
mov cl, 0x44
mov dl, 0x5c
mov byte [esp + 6], al
mov byte [esp + 0xa], al
mov al, 0x73
push esi
mov bl, 0x70
push 0x42019c
mov byte [0x42019c], 0x50
mov byte [0x42019d], 0x43
mov byte [0x42019e], 0x49
mov byte [0x42019f], cl
mov byte [0x4201a0], 0x75
mov byte [0x4201a1], 0x6d
mov byte [0x4201a2], bl
mov byte [0x4201a3], 0
mov byte [esp + 0xc], dl
mov byte [esp + 0xd], cl
mov byte [esp + 0xf], 0x69
mov byte [esp + 0x10], 0x76
mov byte [esp + 0x11], 0x65
mov byte [esp + 0x13], al
mov byte [esp + 0x14], dl
mov byte [esp + 0x15], 0x50
mov byte [esp + 0x16], 0x43
mov byte [esp + 0x17], 0x49
mov byte [esp + 0x18], cl
mov byte [esp + 0x19], 0x75
mov byte [esp + 0x1a], 0x6d
mov byte [esp + 0x1b], bl
mov byte [esp + 0x1c], 0x2e
mov byte [esp + 0x1d], al
mov byte [esp + 0x1e], 0x79
mov byte [esp + 0x1f], al
mov byte [esp + 0x20], 0
call fcn.004073f0
add esp, 4
push 0x104
push 0x420070
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [esp + 8]
push eax
push 0x420070
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x80
push 0x420070
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [esp + 0x44]
push 0x420070
push 0x418308
push 0xca
push ecx
call fcn.00407070
add esp, 0x10
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov esi, eax
test esi, esi
je 0x407738
push edi
push 0x10010
push 0x42019c
push esi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x407734
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push edi
call ebx
push esi
call ebx
pop edi
push 0
push 0
push 3
push 0
push 0
push 0xc0000000
push str..ABCDEFDOS
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [esp + 0x3c]
pop esi
pop ebx
call fcn.0040e486
add esp, 0x38
ret

Function at 0x407770
Capabilities:
Write file on windows

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call edi
push 0x42019c
call fcn.004073f0
add esp, 4
push 0
push 0x80
push 5
push 0
push 2
push 0x40000000
push 0x420070
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x4077ef
mov edx, dword [0x4201ac]
mov eax, dword [0x4201a8]
push 0
lea ecx, [esp + 0xc]
push ecx
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
mov ecx, dword [0x4201a8]
push ecx
call fcn.0040e4ec
push 0x42019c
jmp loc.004d9640
pop edi
pop esi
pop ecx
ret
Function at 0x407800
Capabilities:
Set registry value

Disassembly:
sub esp, 0x18
mov eax, dword [0x41f608]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [esp + 0x24], eax
mov dword [0x420004], ebx
mov dword [0x420008], ebx
mov dword [0x42000c], ebx
mov dword [0x420010], ebx
mov dword [0x420014], ebx
mov dword [0x420018], ebx
mov dword [0x42001c], ebx
mov dword [esp + 0x14], ebx
mov esi, 1
xor eax, eax
push esi
mov dword [esp + 0x1c], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
push str._02d
push ecx
mov word [esp + 0x2c], ax
call fcn.0040e494
mov edx, dword [esi*4 + 0x420000]
add esp, 0xc
push ebx
lea eax, [esp + 0x14]
push eax
push ebx
push 0xf003f
push 1
push ebx
push ebx
push str.SOFTWAREINTEL
push 0x80000002
mov dword [esp + 0x38], edx
call edi
test eax, eax
jne 0x4078ca
mov eax, dword [esp + 0x10]
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push ebx
lea edx, [esp + 0x28]
push edx
push eax
call ebp
test eax, eax
je 0x4078bf
jmp loc.004e7808
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc esi
cmp esi, 7
jle 0x407851
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
call fcn.0040e486
add esp, 0x18
ret
Function at 0x407c80
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 0x80
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407cab
xor al, al
pop esi
ret 0xc
jmp loc.004de078

Function at 0x407df0
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0xb4
mov eax, dword [0x41f608]
push ebx
push 0
push 0x80
push 3
push 0
push 0
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd0]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x407e42
xor al, al
pop ebx
mov ecx, dword [esp + 0xb0]
call fcn.0040e486
add esp, 0xb4
ret 8
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov esi, eax
push esi
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x407e86
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xb0]
call fcn.0040e486
add esp, 0xb4
ret 8
push ebp
push esi
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x6c]
mov ebp, eax
call fcn.00402a40
push esi
push ebp
lea edx, [esp + 0x18]
push edx
lea ecx, [esp + 0x74]
call fcn.00403340
mov ecx, dword [esp + 0xcc]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0x70]
call fcn.00403410
push ebp
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
mov ecx, dword [esp + 0xc0]
pop ebp
pop edi
pop esi
mov al, 1
pop ebx
call fcn.0040e486
add esp, 0xb4
ret 8

Function at 0x407f00
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push esi
push 0
push 2
push 3
push 0
push 0
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407f28
xor eax, eax
pop esi
ret 4
push edi
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
jmp loc.004dee88
Function at 0x407f50
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
sub esp, 0x30
mov eax, dword [0x41f608]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0
push 0x80
push 3
push 0
push 0
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push 0x40000000
push eax
mov dword [esp + 0x24], ecx
call esi
mov edi, eax
cmp edi, 0xffffffff
jne 0x407f9b
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
call fcn.0040e486
add esp, 0x30
ret 0x10
mov ecx, dword [esp + 0x40]
push ebp
push 0
push 2
push 3
push 0
push 0
push 0x80000000
push ecx
call esi
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x407fcd
pop ebp
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x2c]
call fcn.0040e486
add esp, 0x30
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push edi
call esi
push 0
push ebp
call esi
mov esi, eax
shr esi, 4
test eax, 0xf
jbe 0x407fea
inc esi
xor eax, eax
push ebx
mov dword [esp + 0x29], eax
xor edx, edx
mov dword [esp + 0x2d], eax
mov dword [esp + 0x31], eax
push 2
mov dword [esp + 0x19], edx
push eax
mov dword [esp + 0x21], edx
mov dword [esp + 0x25], edx
push eax
push edi
mov byte [esp + 0x24], 0
mov dword [esp + 0x31], edx
mov byte [esp + 0x38], dl
mov dword [esp + 0x45], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xor ebx, ebx
test esi, esi
jbe 0x408091
lea esp, [esp]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
push ecx
lea edx, [esp + 0x48]
push edx
push 0x10
lea eax, [esp + 0x34]
push eax
push ebp
mov dword [esp + 0x34], ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
push ecx
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x20]
call fcn.0040a540
test al, al
je 0x4080b5
push 0
lea edx, [esp + 0x4c]
push edx
push 0x10
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
inc ebx
cmp ebx, esi
jb 0x408030
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push ebp
call edi
pop ebx
pop ebp
mov eax, esi
pop edi
shl eax, 4
pop esi
mov ecx, dword [esp + 0x2c]
call fcn.0040e486
add esp, 0x30
ret 0x10
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebp
call esi
mov ecx, dword [esp + 0x3c]
pop ebx
pop ebp
pop edi
xor eax, eax
pop esi
call fcn.0040e486
add esp, 0x30
ret 0x10
Function at 0x408180
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x324], eax
push esi
push edi
mov edx, ecx
xor eax, eax
mov byte [esp + 0x118], 0
mov ecx, 0x40
lea edi, [esp + 0x119]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x118]
push eax
mov ecx, edx
call fcn.004080e0
test al, al
je 0x408317
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x41841c
lea ecx, [esp + 0x11c]
push ecx
call esi
push str.HELP
lea edx, [esp + 0x11c]
push edx
call esi
push 0
lea eax, [esp + 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 2
lea ecx, [esp + 0x11c]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0
call fcn.0040ee6a
push eax
call fcn.0040ee3d
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
mov byte [esp + 0x228], 0
mov ecx, 0x40
lea edi, [esp + 0x229]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
add esp, 8
mov byte [esp + 0x10], 0
xor eax, eax
mov ecx, 0x40
lea edi, [esp + 0x11]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [esp + 0xc], 0
call fcn.0040ee47
push 0x64
mov edi, eax
call ebx
call fcn.0040ee47
imul eax, edi
push 0xa
lea edx, [esp + 0x224]
push edx
push eax
call fcn.0040edb3
add esp, 0xc
push str..wav
lea eax, [esp + 0x224]
push eax
call esi
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x118]
push ecx
lea edx, [esp + 0x14]
push edx
call edi
push 0x41841c
lea eax, [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
call esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
je 0x40832e
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3e8
call ebx
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 0x3e8
mov dword [esp + 0xc], eax
jl 0x408261
xor al, al
mov ecx, dword [esp + 0x32c]
call fcn.0040e486
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x10]
push ecx
push edx
call edi
push 0
push 0x80
jmp 0x4e31b8

Function at 0x408380
Capabilities:
Create directory
Set file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x324
mov eax, dword [0x41f608]
push ebx
mov dword [esp + 0x324], eax
push esi
push edi
mov edx, ecx
xor eax, eax
mov byte [esp + 0x118], 0
jmp loc.004e5cb0
Function at 0x408580
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0xb4
mov eax, dword [0x41f608]
push ebx
push 0
push 0x80
push 3
push 0
push 1
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0xd0]
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4085d2
xor al, al
pop ebx
mov ecx, dword [esp + 0xb0]
call fcn.0040e486
add esp, 0xb4
ret 0xc
push esi
push edi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov edi, eax
push edi
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov esi, eax
test esi, esi
jne 0x408616
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0xb0]
call fcn.0040e486
add esp, 0xb4
ret 0xc
push edi
push 0
push 0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x68]
mov edi, eax
call fcn.00402a40
mov edx, dword [esp + 0xc8]
push edx
push edi
lea eax, [esp + 0x14]
push eax
jmp loc.004e6868