joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x1c
xor eax, eax
cmp word [0x400000], 0x5a4d
mov dword [0x40c048], 1
mov dword [0x40c044], 1
mov dword [0x40c040], 1
mov dword [0x40c038], 1
jne 0x401060
mov edx, dword [0x40003c]
cmp dword [edx + 0x400000], 0x4550
lea ecx, [edx + 0x400000]
je 0x4010c0
mov dword [0x40c014], eax
mov eax, dword [0x40c054]
test eax, eax
je 0x4010b0
mov dword [esp], 2
call sym.___set_app_type
call sym.___p__fmode
mov edx, dword [0x40c068]
mov dword [eax], edx
call sym.___p__commode
mov edx, dword [0x40c050]
mov dword [eax], edx
call sym.__setargv
cmp dword [0x40a018], 1
je 0x4010f0
xor eax, eax
add esp, 0x1c
ret
mov dword [esp], 1
call sym.___set_app_type
jmp 0x40107a
movzx edx, word [ecx + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401060
cmp dword [ecx + 0x84], 0xe
jbe 0x401060
mov edx, dword [ecx + 0xf8]
xor eax, eax
test edx, edx
setne al
jmp 0x401060
mov dword [esp], sym.__matherr
call sym.___mingw_setusermatherr
xor eax, eax
add esp, 0x1c
ret
cmp dword [ecx + 0x74], 0xe
jbe 0x401060
mov ecx, dword [ecx + 0xe8]
xor eax, eax
test ecx, ecx
setne al
jmp 0x401060

Function at 0x401860
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x4018c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x30
mov esi, dword [0x40c05c]
test esi, esi
jle 0x4019e0
mov eax, dword [0x40c060]
xor ecx, ecx
add eax, 0xc
mov edx, dword [eax]
cmp ebx, edx
jb 0x4018f4
mov edi, dword [eax + 4]
add edx, dword [edi + 8]
cmp ebx, edx
jb 0x401977
add ecx, 1
add eax, 0x14
cmp ecx, esi
jne 0x4018e0
mov dword [esp], ebx
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x401a07
mov eax, dword [0x40c060]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x40c060]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x4019e7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401970
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x401980
add dword [0x40c05c], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [esp + 0x20]
cmove eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x40c060]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401970
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea esi, [esi]
xor esi, esi
jmp 0x4018fe
mov eax, dword [0x40c060]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
lea esi, [esi]
nop
Function at 0x401fe0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov eax, dword [esp + 0x34]
cmp eax, 2
je 0x402110
ja 0x402028
test eax, eax
je 0x4020a8
mov eax, dword [0x40c074]
test eax, eax
je 0x402190
mov dword [0x40c074], 1
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
cmp eax, 3
jne 0x402015
mov eax, dword [0x40c074]
test eax, eax
je 0x402015
mov dword [esp], 0x40c078
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40c070]
sub esp, 4
test ebx, ebx
je 0x40208d
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call edi
sub esp, 4
mov ebp, eax
call esi
test eax, eax
jne 0x4021b8
test ebp, ebp
je 0x4021b8
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402060
mov dword [esp], 0x40c078
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x402015
mov eax, dword [0x40c074]
test eax, eax
jne 0x402128
mov eax, dword [0x40c074]
cmp eax, 1
jne 0x402015
mov ebx, dword [0x40c070]
test ebx, ebx
je 0x4020e1
lea esi, [esi]
mov eax, ebx
mov ebx, dword [ebx + 8]
mov dword [esp], eax
call sym._free
test ebx, ebx
jne 0x4020d0
mov dword [0x40c070], 0
mov dword [0x40c074], 0
mov dword [esp], 0x40c078
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
sub esp, 4
jmp 0x402015
call sym.__fpreset
add esp, 0x1c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], 0x40c078
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x40c070]
sub esp, 4
test ebx, ebx
je 0x402175
mov edi, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov eax, dword [ebx]
mov dword [esp], eax
call edi
sub esp, 4
mov ebp, eax
call esi
test eax, eax
jne 0x4021a8
test ebp, ebp
je 0x4021a8
mov eax, dword [ebx + 4]
mov dword [esp], ebp
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402150
mov dword [esp], 0x40c078
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
jmp 0x4020b1
mov dword [esp], 0x40c078
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
sub esp, 4
jmp 0x40200b
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402150
jmp 0x402175
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x402060
jmp 0x40208d

Function at 0x4022e0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [0x400000], 0x5a4d
jne 0x402305
mov ecx, dword [0x40003c]
cmp dword [ecx + 0x400000], 0x4550
lea edx, [ecx + 0x400000]
je 0x402310
ret
cmp word [ecx + 0x400018], 0x10b
jne 0x402305
push esi
movzx eax, word [ecx + 0x400014]
push ebx
movzx esi, word [ecx + 0x400006]
mov ebx, dword [esp + 0xc]
lea eax, [edx + eax + 0x18]
sub ebx, 0x400000
test si, si
je 0x402358
xor ecx, ecx
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x40234e
add edx, dword [eax + 8]
cmp ebx, edx
jb 0x40235a
add ecx, 1
add eax, 0x28
cmp ecx, esi
jne 0x402340
xor eax, eax
pop ebx
pop esi
ret
Function at 0x403c3a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
test eax, eax
je 0x403c95
push esi
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov esi, eax
test esi, esi
je 0x403c86
push edi
push ebx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x403c82
cmp esi, ecx
jae 0x403c86
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x403c70
cmp esi, ecx
jb 0x403c8a
xor eax, eax
jmp 0x403c94
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4

Function at 0x40451b
Capabilities:
Connect socket
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x617ff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
xor edx, edx
push edi
mov edi, ecx
call fcn.004044cf
push 0x10
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
or ebx, 0xffffffff
cmp esi, ebx
jne 0x40459b
cmp eax, 0x2733
jne 0x40459d
and dword [ebp - 0x10c], 0
lea eax, [ebp - 0x110]
push eax
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 1
push eax
push 0
push 0
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x110], 4
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
je 0x40459d
xor ebx, ebx
xor edx, edx
mov ecx, edi
inc edx
call fcn.004044cf
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00580b5b
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0xc], edx
xor ebx, ebx
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 4], ebx
call fcn.004044f1
push ebx
push 1
push ebx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov edi, dword [ebp + 8]
mov ebx, eax
jmp 0x404619
mov eax, dword [ebp - 4]
cmp eax, 0x2710
jge 0x40461d
cmp esi, 0x2000
jge 0x40461d
cmp esi, 0xffffffff
je 0x404631
push 1
inc eax
push ebx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov ecx, dword [ebp - 8]
call fcn.004044f1
mov esi, eax
cmp esi, edi
jl 0x4045eb
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, 0xffffffff
je 0x404638
test esi, esi
jne 0x40463d
xor eax, eax
jmp 0x404679
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or eax, 0xffffffff
jmp 0x404679
mov ebx, dword [ebp - 8]
cmp edi, esi
push 0
mov eax, edi
cmovg eax, esi
push eax
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, edi
jge 0x404677
test esi, esi
jle 0x404677
mov edx, dword [ebp - 0xc]
sub edi, esi
push edi
mov ecx, ebx
lea edx, [esi + edx]
call fcn.004045bc
cmp eax, 0xffffffff
je 0x404638
add eax, esi
jmp 0x404679
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404e47
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0xc], edx
xor ebx, ebx
mov dword [ebp - 8], eax
push edi
mov dword [ebp - 4], ebx
call fcn.004044f1
push ebx
push 1
push ebx
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_CreateEventW]
mov edi, dword [ebp + 8]
mov ebx, eax
jmp 0x404ea2
cmp dword [ebp - 4], 0xfa0
jge 0x404ea6
cmp esi, 0x2000
jge 0x404ea6
cmp esi, 0xffffffff
je 0x404eba
mov ecx, dword [ebp - 8]
call fcn.004044f1
inc dword [ebp - 4]
mov esi, eax
push 1
push ebx
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp esi, edi
jl 0x404e76
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, 0xffffffff
je 0x404ec1
test esi, esi
jne 0x404ec6
xor eax, eax
jmp 0x404f02
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
or eax, 0xffffffff
jmp 0x404f02
mov ebx, dword [ebp - 8]
cmp edi, esi
push 0
mov eax, edi
cmovg eax, esi
push eax
push dword [ebp - 0xc]
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
cmp esi, edi
jge 0x404f00
test esi, esi
jle 0x404f00
mov edx, dword [ebp - 0xc]
sub edi, esi
push edi
mov ecx, ebx
lea edx, [esi + edx]
call fcn.00404e47
cmp eax, 0xffffffff
je 0x404ec1
add eax, esi
jmp 0x404f02
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x404f0b
Capabilities:
Create udp socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5d4
mov eax, dword [0x617ff0]
xor eax, esp
mov dword [esp + 0x5d0], eax
cmp byte [ecx], 0
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [esp + 0x10], edx
mov dword [esp + 0x1c], eax
je 0x40501e
push ecx
lea eax, [esp + 0x2dc]
push eax
call fcn.00589e60
pop ecx
pop ecx
lea eax, [esp + 0x2d8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
and dword [edi], 0
lea eax, [esp + 0x30]
xor ebx, ebx
push eax
inc ebx
push 0x202
mov dword [esp + 0x20], ebx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0
push ebx
push 2
pop eax
push eax
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
push 4
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x400000
push eax
push 0x1002
push 0xffff
push esi
call ebx
test esi, esi
je 0x404fbf
push 4
lea eax, [esp + 0x1c]
push eax
push 1
push 6
push esi
call ebx
cmp eax, 0xffffffff
je 0x405017
push 0x10
xor ebx, ebx
lea eax, [esp + 0x24]
push ebx
push eax
call fcn.005838b0
add esp, 0xc
push 2
pop eax
mov word [esp + 0x20], ax
lea eax, [esp + 0x2d8]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
push dword [esp + 0x10]
mov dword [esp + 0x28], eax
call dword [sym.imp.WS2_32.dll_htons]
push ecx
push ecx
lea edx, [esp + 0x28]
mov word [esp + 0x2a], ax
mov ecx, esi
call fcn.0040451b
test eax, eax
jns 0x405037
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [edi], eax
test esi, esi
je 0x40501e
mov ecx, esi
call fcn.00410168
xor eax, eax
mov ecx, dword [esp + 0x5dc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00580b5b
mov esp, ebp
pop ebp
ret 8
push 0xc
lea edx, [esp + 0x3dc]
mov ecx, esi
call fcn.00404e47
lea eax, [esp + 0x3d8]
mov byte [esp + 0x3e4], bl
push 0x5e6adc
push eax
call fcn.0058afe0
pop ecx
pop ecx
test eax, eax
jne 0x405013
push 1
lea edx, [esp + 0x1dc]
mov byte [esp + 0x1dc], bl
mov ecx, esi
call fcn.00404e47
mov al, byte [esp + 0x1d8]
cmp al, 0x41
jne 0x40508d
push 2
pop eax
jmp 0x405011
cmp al, 0x42
jne 0x40509c
mov dword [edi], 3
jmp 0x405013
cmp al, 0x44
jne 0x4050ab
mov dword [edi], 4
jmp 0x405013
mov ebx, dword [sym.imp.WS2_32.dll_send]
cmp al, 0x43
jne 0x405131
push 6
lea edx, [esp + 0x1c8]
mov ecx, esi
call fcn.00404e47
push dword [esp + 0x1c]
lea eax, [esp + 0x4dc]
mov byte [esp + 0x1ce], 0
push eax
call fcn.00589e60
lea eax, [esp + 0x1cc]
push eax
lea eax, [esp + 0x4e4]
push eax
call fcn.00589e70
add esp, 0x10
lea ecx, [esp + 0x4d8]
call fcn.004047ea
push 0
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push 4
push eax
push esi
call ebx
push 1
lea edx, [esp + 0x1dc]
mov byte [esp + 0x1dc], 0x61
mov ecx, esi
call fcn.00404e47
mov al, byte [esp + 0x1d8]
cmp al, 0x50
je 0x40514e
mov dword [edi], 5
test esi, esi
je 0x405146
mov ecx, esi
call fcn.00410168
xor eax, eax
inc eax
jmp 0x405020
push 0
push 1
push 0x5e6ad0
push esi
call ebx
push 0
push 1
push 0x5e6ad4
push esi
call ebx
jmp 0x40513b
Function at 0x407255
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x617ff0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
and dword [ebp - 0x108], 0
push ebx
push esi
mov esi, dword [ebp + 0x14]
mov ebx, edx
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x110], eax
mov edi, ecx
lea eax, [ebp - 0x104]
push str.SOFTWAREStardockRemoteAudio
push eax
call fcn.00589e60
lea eax, [ebp - 0x104]
push 0x5e60a0
push eax
call fcn.00589e70
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.00589e70
lea eax, [ebp - 0x104]
push 0x5e60a0
push eax
call fcn.00589e70
lea eax, [ebp - 0x104]
push edi
push eax
call fcn.00589e70
add esp, 0x28
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov esi, dword [ebp - 0x110]
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 1
push eax
push 0
push ebx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, dword [ebp - 0x10c]
test eax, eax
je 0x407332
push edi
push esi
call fcn.00589e60
pop ecx
pop ecx
push esi
call fcn.0058b5a0
pop ecx
test eax, eax
jne 0x407346
push edi
push esi
call fcn.00589e60
pop ecx
pop ecx
push dword [ebp - 0x108]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00580b5b
mov esp, ebp
pop ebp
ret 0x14
Function at 0x4098c4
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x617ff0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x210], 0xff
xor esi, esi
mov ecx, esi
lea ebx, [edi + 0xf0]
mov eax, ecx
cdq
idiv dword [ebp - 0x210]
mov al, byte [edx*4 + 0x5e8280]
mov byte [ebx + ecx], al
inc ecx
cmp ecx, 0x20
jb 0x4098f0
mov eax, 0xff
mov dword [ebp - 0x208], esi
push eax
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.005838b0
lea eax, [ebp - 0x104]
push str.MP3_end
push eax
call fcn.00589e60
add esp, 0x14
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x104]
call fcn.0040f963
mov dword [ebp - 0x20c], eax
test eax, eax
je 0x409997
cmp dword [ebp - 0x208], esi
jbe 0x409990
mov ebx, esi
mov esi, eax
xor edx, edx
mov eax, ebx
div dword [ebp - 0x208]
lea ecx, [edx + esi]
mov al, byte [ecx]
mov byte [edi + ebx + 0xf0], al
mov al, byte [ecx]
mov byte [edi + ebx + 0x204], al
inc ebx
cmp ebx, 0x20
jb 0x40995d
mov eax, dword [ebp - 0x20c]
lea ebx, [edi + 0xf0]
xor esi, esi
push eax
call fcn.0058b077
pop ecx
push 0x100
mov edx, ebx
mov ecx, edi
call fcn.00411b4f
push ecx
lea edx, [edi + 0x204]
mov dword [edi + 0x110], eax
lea ecx, [edi + 0x114]
call fcn.00412013
mov dword [edi + 0x224], eax
mov ecx, esi
mov eax, ecx
cdq
idiv dword [ebp - 0x210]
mov al, byte [edx*4 + 0x5e8280]
mov byte [edi + ecx + 0x318], al
inc ecx
cmp ecx, 0x20
jb 0x4099c5
mov eax, 0xff
mov dword [ebp - 0x208], esi
push eax
lea eax, [ebp - 0x204]
push esi
push eax
call fcn.005838b0
lea eax, [ebp - 0x204]
push str.MP3_endB
push eax
call fcn.00589e60
add esp, 0x14
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x204]
call fcn.0040f963
mov ebx, eax
test ebx, ebx
je 0x409a5b
cmp dword [ebp - 0x208], 0
jbe 0x409a54
xor edx, edx
mov eax, esi
div dword [ebp - 0x208]
lea ecx, [edx + ebx]
mov al, byte [ecx]
mov byte [edi + esi + 0x318], al
mov al, byte [ecx]
mov byte [edi + esi + 0x42c], al
inc esi
cmp esi, 0x20
jb 0x409a2f
push ebx
call fcn.0058b077
pop ecx
push 0x100
lea ecx, [edi + 0x228]
lea edx, [edi + 0x318]
call fcn.00411b4f
push ecx
lea edx, [edi + 0x42c]
mov dword [edi + 0x338], eax
lea ecx, [edi + 0x33c]
call fcn.00412013
mov ecx, dword [ebp - 4]
mov dword [edi + 0x44c], eax
xor ecx, ebp
pop edi
xor eax, eax
pop esi
inc eax
pop ebx
call fcn.00580b5b
mov esp, ebp
pop ebp
ret
Function at 0x409c01
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp edi, 1
jae 0x409c18
xor eax, eax
jmp 0x409cab
cmp dword [ebp + 8], 0
je 0x409c11
cmp dword [ebp + 0x10], 0
push esi
jne 0x409c3d
xor esi, esi
push esi
push esi
push 0x400
push esi
push 1
push edi
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
jmp 0x409caa
push ebx
push 0x5e66b6
push dword [ebp + 0x10]
call fcn.00589e60
lea esi, [edi + 0x400]
push esi
call fcn.0058b06c
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x409c8b
push esi
xor esi, esi
push esi
push ebx
call fcn.005838b0
add esp, 0xc
mov dword [ebp + 0xc], 0x400
lea eax, [ebp + 0xc]
push esi
push esi
push eax
push ebx
push 1
push edi
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x409c8f
xor eax, eax
jmp 0x409ca9
push ecx
push dword [ebp + 0x10]
mov ecx, dword [ebp - 4]
push dword [ebp + 0xc]
push ebx
call fcn.00409aa3
push ebx
call fcn.0058b077
xor eax, eax
pop ecx
inc eax
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x409cb2
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
je 0x409d18
cmp byte [eax], 0
je 0x409d18
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x409d18
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x409d18
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x409d18
lea esi, [ebp + 8]
mov dword [ebp + 8], edx
push esi
push edx
push eax
xor ebx, ebx
call fcn.00409d90
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x409d18
push edi
push esi
push 1
push dword [ebp + 8]
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x409d0b
mov ecx, dword [edi]
mov byte [esi + ecx], bl
inc ebx
push dword [ebp + 0xc]
call fcn.0058b077
pop ecx
mov eax, ebx
jmp 0x409d1a
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10

Function at 0x409d21
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
test eax, eax
je 0x409d87
cmp byte [eax], 0
je 0x409d87
mov edx, dword [ebp + 0xc]
test edx, edx
je 0x409d87
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x409d87
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x409d87
lea esi, [ebp + 8]
mov dword [ebp + 8], edx
push esi
push edx
push eax
xor ebx, ebx
call fcn.00409e4e
mov esi, dword [ebp + 0x10]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x409d87
push edi
push esi
push 1
push dword [ebp + 8]
push eax
call dword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
je 0x409d7a
mov ecx, dword [edi]
mov byte [esi + ecx], bl
inc ebx
push dword [ebp + 0xc]
call fcn.0058b077
pop ecx
mov eax, ebx
jmp 0x409d89
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x409f13
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
cmp edi, 1
jae 0x409f2a
xor eax, eax
jmp 0x409fc3
cmp dword [ebp + 8], 0
je 0x409f23
push ebx
push esi
mov esi, dword [ebp + 0x10]
xor ebx, ebx
test esi, esi
jne 0x409f51
push ebx
push ebx
push 0x400
push ebx
push 1
push edi
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
jmp 0x409fc1
lea eax, [edi + 0x400]
mov byte [esi], bl
push eax
call fcn.0058b06c
mov dword [ebp + 0x10], eax
pop ecx
test eax, eax
je 0x409fc1
lea ecx, [edi + 0x400]
push ecx
push ebx
push eax
call fcn.005838b0
add esp, 0xc
mov dword [ebp + 0xc], 0x400
lea eax, [ebp + 0xc]
push ebx
push ebx
mov ebx, dword [ebp + 0x10]
push eax
push ebx
push 1
push edi
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x409fa9
push str.FAILED_
push esi
call fcn.00589e60
pop ecx
xor eax, eax
jmp 0x409fc0
push ecx
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.00409b52
push ebx
call fcn.0058b077
xor eax, eax
inc eax
pop ecx
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0x10