joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e22
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x508
push ebx
push esi
push edi
mov esi, 0x41d23c
lea edi, [ebp - 0x508]
xor eax, eax
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x507]
mov ecx, 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebx, ebx
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
cmp dword [edi + 0x1c], eax
jle 0x404eeb
xor esi, esi
mov eax, dword [ebp + 8]
cmp dword [eax + 0x28], 0x65
mov eax, dword [edi + 0x18]
jne 0x404e8a
mov eax, dword [eax + esi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x404e78
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0040c357
add esp, 8
jmp 0x404eac
mov ecx, dword [eax + esi]
mov eax, dword [ecx + 0xc]
test eax, eax
jne 0x404e97
mov eax, dword [ecx + 0x10]
push 0x104
lea ecx, [ebp - 0x108]
push eax
push ecx
call fcn.0040b640
add esp, 0xc
lea eax, [ebp - 0x108]
lea ecx, [ebp + ebx - 0x508]
push eax
push 0x41d454
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add ebx, eax
lea ecx, [ebx + 0x104]
cmp ecx, 0x400
jae 0x404eeb
add esi, 4
inc dword [ebp - 4]
mov eax, dword [ebp - 4]
cmp dword [edi + 0x1c], eax
jg 0x404e5f
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x508]
push ecx
mov ebx, dword [ebp + 0xc]
mov esi, dword [eax]
push ebx
mov ecx, eax
call dword [esi + 0x88]
mov esi, dword [esi + 0x8c]
mov eax, 0
cmp dword [edi + 0x1c], 1
adc eax, 0xffffffff
mov ecx, dword [ebp + 8]
and eax, 5
push eax
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [edi + 0x1c], 1
sbb eax, eax
mov ecx, dword [ebp + 8]
inc eax
push eax
push ebx
call esi
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405382
Capabilities:
Write file on windows

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push dword [esp + 0x14]
mov edi, ecx
call fcn.00418970
add esp, 4
mov esi, eax
mov eax, dword [edi]
cmp dword [eax + 0x64], ebx
je 0x4053f0
add eax, 0x68
cmp byte [eax], bl
je 0x4053f0
push ebx
push pe_nt_image_headers32
push 4
push ebx
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x4053ec
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0xc]
push ebx
push eax
push esi
push dword [esp + 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4053f5
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 4
ret 4
Function at 0x4077d0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ecx + 0x421c]
mov ecx, dword [edi]
cmp dword [ecx + 8], 0
lea edx, [ecx + 0x184]
jne 0x4077f8
lea edx, [ecx + 0x80]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x407802
mov eax, dword [ecx + 0x20]
push eax
lea ecx, [ebp - 0x400]
push edx
push ecx
call fcn.0040c48f
add esp, 0xc
cmp eax, 0x104
jl 0x407839
push 0
lea eax, [ebp - 0x400]
push str.Pathname_too_long
mov ebx, dword [esi]
push eax
mov ecx, esi
call dword [ebx + 0x90]
xor eax, eax
jmp 0x4078df
mov ecx, dword [edi]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x407845
mov eax, dword [ecx + 0x20]
push eax
lea ecx, [ebp - 0x400]
push ecx
call fcn.0040c44e
add esp, 8
test eax, eax
push 0
jne 0x407875
push str.Not_safe_pathname
lea eax, [ebp - 0x400]
push eax
mov ebx, dword [esi]
mov ecx, esi
call dword [ebx + 0x90]
xor eax, eax
jmp 0x4078df
push pe_nt_image_headers32
lea eax, [ebp - 0x400]
push 2
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, dword [edi]
mov dword [ecx + 0x54], eax
mov eax, dword [edi]
cmp dword [eax + 0x54], 0xffffffff
jne 0x4078c5
cmp dword [eax + 8], 0
je 0x4078a9
xor eax, eax
jmp 0x4078df
push 0
lea eax, [ebp - 0x400]
push eax
mov ebx, dword [esi]
push str.Cant_create_file
mov ecx, esi
call dword [ebx + 0x90]
xor eax, eax
jmp 0x4078df
test byte [eax + 0x25], 1
je 0x4078da
push 1
lea eax, [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4078e6
Capabilities:
Download and write a file
Receive and write data from server to client
Receive data
Receive data on socket
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ecx + 0x421c]
mov ecx, dword [edi]
mov ebx, dword [ecx + 0x44]
lea eax, [ecx + 0x40]
mov edx, dword [eax]
lea eax, [ecx + 0x28]
mov dword [ebp - 8], edx
mov edx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
sub ebx, dword [ecx + 0x48]
sub edx, dword [ebp - 8]
sbb eax, dword [ebp - 4]
mov dword [ebp - 8], edx
mov edx, dword [esi + 0x418c]
mov dword [ebp - 4], eax
mov eax, dword [edx + 0x318]
sub eax, ebx
cdq
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp dword [ebp - 0xc], edx
jg 0x407954
jl 0x407948
cmp dword [ebp - 0x10], eax
jae 0x407954
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov dword [ebp - 4], edx
push 0
mov eax, dword [ecx + 0x50]
add eax, ebx
mov ecx, dword [ecx]
push dword [ebp - 8]
push eax
push dword [ecx + 8]
call sub.WSOCK32.dll_recv
mov dword [ebp - 4], eax
test eax, eax
jle 0x407a73
mov eax, dword [edi]
cmp dword [eax + 0x54], 0xffffffff
jne 0x40798b
mov ecx, esi
call fcn.004077d0
test eax, eax
je 0x407a73
add ebx, dword [ebp - 4]
mov eax, dword [ebp - 4]
cdq
mov dword [ebp - 0x10], eax
mov eax, dword [edi]
add eax, 0x40
mov dword [ebp - 0xc], edx
mov ecx, dword [eax]
mov eax, dword [eax + 4]
add ecx, dword [ebp - 0x10]
adc eax, edx
mov edx, dword [edi]
add edx, 0x28
cmp eax, dword [edx + 4]
jg 0x4079c5
jl 0x4079b7
cmp ecx, dword [edx]
jae 0x4079c5
mov eax, dword [esi + 0x418c]
cmp dword [eax + 0x318], ebx
jne 0x4079f1
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [edi]
push ebx
push dword [ecx + 0x50]
push dword [ecx + 0x54]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x407a5d
cmp dword [ebp - 4], ebx
jne 0x407a5d
mov ecx, dword [edi]
mov eax, ebx
add ecx, 0x48
cdq
add dword [ecx], eax
adc dword [ecx + 4], edx
mov eax, dword [edi]
mov ecx, dword [ebp - 0x10]
add eax, 0x40
mov edx, dword [ebp - 0xc]
add dword [eax], ecx
adc dword [eax + 4], edx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [edi]
mov edx, eax
mov ecx, dword [ecx]
add ecx, 0x20
sub edx, dword [ecx]
cmp edx, 0x3e8
jb 0x407a2f
push 0
mov dword [ecx], eax
push 0
mov eax, dword [esi]
push 0x470
mov ecx, esi
call dword [eax + 0xa0]
mov esi, dword [edi]
mov ebx, dword [esi + 0x44]
lea ecx, [esi + 0x28]
lea eax, [esi + 0x40]
cmp dword [ecx + 4], ebx
mov edx, dword [eax]
jg 0x407a56
jl 0x407a47
cmp dword [ecx], edx
ja 0x407a56
cmp dword [esi + 8], 1
mov eax, 8
adc eax, 0xffffffff
mov dword [esi + 0x7c], eax
mov eax, 1
jmp 0x407a75
push 0
mov eax, dword [esi]
push 0x41d268
mov ecx, esi
push str.Cant_write_file
call dword [eax + 0x90]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408122
Capabilities:
Get hostname
Get session user name
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi + 8], edi
call fcn.0040c536
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, 0xffffffff
mov dword [esi + 0x14], edi
mov dword [esi + 4], eax
mov dword [esi], eax
push dword [ebp + 0xc]
mov dword [esi + 0x84], ecx
call sub.WSOCK32.dll_htons
movzx ecx, ax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x88], ecx
mov ecx, esi
mov dword [esi + 0x10], eax
cmp eax, 1
sbb eax, eax
inc eax
push eax
call fcn.00408233
test eax, eax
je 0x408223
lea ebx, [esi + 0x52]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x32
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x4081a9
push edi
push str.GetComputerName__
call fcn.0040c250
add esp, 8
jmp 0x408223
cmp dword [ebp + 8], 0
jne 0x4081f2
push 0x400
lea eax, [ebp - 0x404]
push eax
call sub.WSOCK32.dll_gethostname
cmp eax, 0xffffffff
jne 0x4081d5
push ebx
lea eax, [ebp - 0x404]
push eax
call fcn.00418670
add esp, 8
lea eax, [ebp - 0x404]
push eax
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x4081f2
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esi + 0x84], edx
lea edi, [esi + 0x20]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x32
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
je 0x40821c
push 0x32
push str.no_name
push edi
call fcn.0040b640
add esp, 0xc
mov dword [esi + 8], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408994
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 0x10]
mov esi, ecx
push 0x10
push 0
push eax
call fcn.00418610
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov word [ebp - 0xe], ax
mov ecx, dword [ebp + 8]
push 0x10
lea edx, [ebp - 0x10]
push edx
mov dword [ebp - 0xc], ecx
mov word [ebp - 0x10], 2
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi]
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x408a4e
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2742
je 0x4089f1
cmp eax, 0x2751
je 0x408a37
xor eax, eax
jmp 0x408a53
mov ecx, esi
call fcn.00408514
cmp eax, 1
je 0x408a01
xor eax, eax
jmp 0x408a53
mov eax, dword [esi + 0x14]
test eax, eax
je 0x408a19
push eax
mov ecx, esi
call fcn.004085d8
cmp eax, 1
je 0x408a19
xor eax, eax
jmp 0x408a53
push 0x10
lea eax, [ebp - 0x10]
push eax
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [esi]
call sub.WSOCK32.dll_sendto
cmp eax, 0xffffffff
jne 0x408a4e
xor eax, eax
jmp 0x408a53
cmp dword [0x4205a8], 0
jne 0x408a4a
mov dword [0x4205a8], 1
xor eax, eax
jmp 0x408a53
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408a96
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0xc], 0x10
push ebx
lea eax, [ebp - 0xc]
mov dword [ebp - 8], 1
push esi
push edi
mov edi, ecx
mov esi, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push dword [edi + 4]
call sub.WSOCK32.dll_accept
cmp eax, 0xffffffff
mov ecx, eax
mov dword [esi + 8], eax
je 0x408b5f
push 4
lea eax, [ebp - 8]
push eax
mov ebx, 1
push ebx
push 0xffff
push ecx
call sub.WSOCK32.dll_setsockopt
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x18], ebx
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
movzx ecx, word [ebp - 0x1a]
mov dword [esi + 0x10], ecx
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 0x31c]
mov dword [ebp - 4], eax
test eax, eax
jle 0x408b35
push 4
lea eax, [ebp - 4]
push eax
push 0x1001
push 0xffff
push dword [esi + 8]
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x408b35
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
test eax, eax
jg 0x408b0a
push esi
mov ecx, edi
push dword [ebp + 8]
call fcn.00408c7f
test eax, eax
je 0x408b57
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov eax, 1
jmp 0x408b61
push dword [esi + 8]
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408b6a
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
xor eax, eax
push ebx
push esi
mov ebx, ecx
push edi
push eax
mov edi, dword [ebp + 0xc]
push 1
push 2
lea esi, [edi + 8]
mov dword [edi + 0x14], eax
call sub.WSOCK32.dll_socket
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x408c74
mov dword [ebp - 8], 1
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x408c74
push 4
lea eax, [ebp - 8]
push eax
push 1
push 0xffff
push dword [esi]
call sub.WSOCK32.dll_setsockopt
mov ecx, dword [ebx + 0x10]
mov edx, dword [ecx + 0x31c]
mov dword [ebp - 4], edx
test edx, edx
jle 0x408c01
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
push 0xffff
push dword [esi]
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x408c01
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
test eax, eax
jg 0x408bd7
push edi
mov ecx, ebx
push dword [ebp + 8]
call fcn.00408c7f
test eax, eax
je 0x408c6d
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00418610
add esp, 0xc
mov eax, dword [edi + 0x10]
mov word [ebp - 0x16], ax
mov ecx, dword [edi + 0xc]
push 0x10
lea edx, [ebp - 0x18]
push edx
mov dword [ebp - 0x14], ecx
push dword [esi]
mov word [ebp - 0x18], 2
call sub.WSOCK32.dll_connect
cmp eax, 1
sbb eax, eax
neg eax
mov dword [edi + 0x18], eax
test eax, eax
jne 0x408c5a
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x408c6d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
mov eax, 1
jmp 0x408c76
push dword [esi]
call sub.WSOCK32.dll_closesocket
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40987f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov eax, 4
mov ebp, esp
sub esp, 0x70
push esi
mov dword [ebp - 8], eax
push edi
mov esi, ecx
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov edx, dword [esi + 4]
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 8]
push dword [esi + edx*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4098ec
lea eax, [ebp - 4]
lea ecx, [ebp - 0x70]
mov dword [ebp - 4], 0x64
push eax
push ecx
mov eax, dword [esi + 4]
push dword [ebp + 8]
push dword [esi + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
mov eax, 0
jne 0x4098f1
lea eax, [ebp - 0x70]
push eax
call fcn.00419130
add esp, 4
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x40997a
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call fcn.00418970
add esp, 4
inc eax
push eax
mov eax, dword [esi + 4]
push dword [esp + 0x10]
push 1
push 0
push dword [esp + 0x18]
push dword [esi + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop esi
cmp eax, 1
sbb eax, eax
neg eax
ret 8
Function at 0x4099af
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push dword [ebp + 0x10]
push dword [ebp + 0xc]
mov dword [ebp - 4], 3
lea eax, [ebp - 4]
push eax
push 0
mov eax, dword [ecx + 4]
push dword [ebp + 8]
push dword [ecx + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esp, ebp
cmp eax, 1
sbb eax, eax
pop ebp
neg eax
ret 0xc

Function at 0x4099e5
Capabilities:
Set registry value

Disassembly:
push dword [esp + 0xc]
push dword [esp + 0xc]
push 3
push 0
mov edx, dword [ecx + 4]
push dword [esp + 0x14]
push dword [ecx + edx*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp eax, 1
sbb eax, eax
neg eax
ret 0xc

Function at 0x409a42
Capabilities:
Query or enumerate registry key

Disassembly:
xor eax, eax
lea edx, [esp + 0xc]
push eax
push eax
push eax
push eax
push edx
mov eax, dword [ecx + 4]
push dword [esp + 0x1c]
push dword [esp + 0x1c]
push dword [ecx + eax*4 + 4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 1
sbb eax, eax
neg eax
ret 0xc
Function at 0x40bfc6
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov edx, 0x41d23c
mov ebp, esp
sub esp, 0x954
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
lea edi, [ebp - 0x954]
xor eax, eax
mov ecx, 0xff
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x953]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov esi, edx
mov ecx, 0xff
stosb byte es:[edi], al
lea edi, [ebp - 0x554]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x553]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
cmp byte [edi], al
je 0x40c04f
lea eax, [ebp - 4]
lea ecx, [ebp - 0x954]
push eax
push ecx
push 0x400
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40c04f
cmp dword [ebp - 4], 0
je 0x40c04f
mov eax, dword [ebp - 4]
push 0x104
lea ecx, [ebp - 0x554]
mov byte [eax - 1], 0
push dword [ebp - 4]
jmp 0x40c063
cmp dword [ebp + 0x14], 0
je 0x40c06c
push 0x104
lea ecx, [ebp - 0x954]
push dword [ebp + 0x14]
push ecx
call fcn.0040b640
add esp, 0xc
push 0x4c
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00418610
add esp, 0xc
mov eax, dword [ebx]
mov dword [ebp - 0x50], 0x4c
test eax, eax
je 0x40c091
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x4c], eax
jmp 0x40c098
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x554]
mov dword [ebp - 0x44], eax
cmp eax, 1
sbb eax, eax
mov edx, dword [ebp + 0xc]
inc eax
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x30], 0x400
lea eax, [ebp - 0x954]
mov dword [ebp - 0x24], eax
mov eax, dword [ebx + 4]
mov dword [ebp - 0xc], eax
cmp eax, 1
mov eax, 0
adc eax, 0xffffffff
add ebx, 8
and eax, 0x20
or eax, 0x80004
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx]
test eax, eax
je 0x40c0ff
cmp eax, 1
je 0x40c0ff
sub eax, 3
cmp eax, 1
sbb eax, eax
and eax, 0x100000
jmp 0x40c10d
dec eax
cmp eax, 1
sbb eax, eax
and eax, 0x200
or ah, 0x10
or dword [ebp - 0x1c], eax
lea eax, [ebp - 0x154]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebx]
test eax, eax
je 0x40c138
cmp eax, 1
je 0x40c138
lea eax, [ebp - 0x50]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
jmp 0x40c141
lea eax, [ebp - 0x50]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
mov esi, eax
lea eax, [ebp - 0x154]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test esi, esi
je 0x40c197
cmp dword [ebx], 1
jne 0x40c16d
push 0x400
lea eax, [ebp - 0x554]
push eax
push edi
call fcn.00418760
jmp 0x40c17b
push 0x104
push dword [ebp - 0x34]
push edi
call fcn.0040b640
add esp, 0xc
cmp dword [ebp + 0x14], 0
je 0x40c197
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x34]
push dword [ebp + 0x14]
call fcn.0040b640
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40c9ba
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x40c9e1
push esi
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
jne 0x40c9e3
push esi
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x40c9e1
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov eax, dword [ecx]
jmp 0x40c9e3
xor eax, eax
pop esi
ret

Function at 0x40cf59
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push edi
mov ebx, ecx
mov esi, 0x41d23c
lea edi, [ebp - 0x110]
xor eax, eax
mov ecx, 0x40
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x10f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x214]
mov esi, 0x104
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
lea ecx, [ebp - 0x110]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 4
jb 0x40cfc4
push str.Media
lea eax, [ebp - 0x110]
push eax
call fcn.00418680
add esp, 8
xor eax, eax
lea ecx, [ebp - 0x110]
push ecx
mov dword [ebp - 0xc], ebx
push str.SoundFile_.wav_
lea ecx, [ebp - 0xc]
push str.SoundFile_selection
mov dword [ebp - 8], eax
push 0x433
mov dword [ebp - 4], eax
call fcn.0040bf58
mov esi, eax
lea ecx, [ebp - 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410627
Capabilities:
Encode data using xor
Encrypt data using blowfish

Disassembly:
push ebp
xor eax, eax
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [eax + 0x41e7f8]
mov edx, dword [edi]
mov dword [edx + eax], ecx
add eax, 4
cmp eax, 0x48
jl 0x410634
xor eax, eax
mov ecx, 4
mov edx, 0x100
mov esi, dword [eax + 0x41e840]
mov ebx, dword [edi + 4]
mov dword [ebx + eax], esi
add eax, 4
dec edx
jne 0x410653
dec ecx
jne 0x41064e
xor ebx, ebx
xor esi, esi
mov ecx, dword [ebp + 8]
mov eax, ebx
inc ebx
cdq
idiv dword [ebp + 0xc]
mov al, byte [ecx + edx]
mov byte [ebp - 1], al
mov eax, ebx
cdq
idiv dword [ebp + 0xc]
inc ebx
mov al, byte [ecx + edx]
mov byte [ebp - 2], al
mov eax, ebx
cdq
idiv dword [ebp + 0xc]
inc ebx
mov al, byte [ecx + edx]
mov byte [ebp - 3], al
mov eax, ebx
cdq
idiv dword [ebp + 0xc]
inc ebx
mov al, byte [ecx + edx]
mov byte [ebp - 4], al
mov eax, dword [edi]
mov edx, dword [ebp - 4]
xor dword [eax + esi], edx
add esi, 4
cmp esi, 0x48
jl 0x41066f
xor esi, esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.0040fffa
mov edx, dword [ebp - 0xc]
mov ecx, dword [edi]
mov dword [ecx + esi], edx
mov ecx, dword [edi]
mov eax, dword [ebp - 8]
add esi, 8
cmp esi, 0x48
mov dword [ecx + esi - 4], eax
jl 0x4106bb
xor ebx, ebx
mov esi, 4
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
lea ecx, [ebp - 0xc]
push eax
push ecx
mov ecx, edi
call fcn.0040fffa
mov edx, dword [ebp - 0xc]
mov ecx, dword [edi + 4]
mov dword [ecx + ebx], edx
mov ecx, dword [edi + 4]
mov eax, dword [ebp - 8]
add ebx, 8
dec dword [ebp - 4]
mov dword [ecx + ebx - 4], eax
jne 0x4106f1
dec esi
jne 0x4106ea
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x412c10
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
push esi
push edi
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x412c39
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x412cab
push 0x140
push 0
push esi
call fcn.00418610
add esp, 0xc
push 0
push 0x2000000
push 3
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov edi, eax
je 0x412c99
lea eax, [ebp - 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x412c99
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call fcn.00418760
add esp, 0xc
mov eax, 1
jmp 0x412cab
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [esi], eax
inc eax
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret