joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401140
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
mov eax, 0x55555556
push esi
lea ecx, [ebp*4]
imul ecx
mov eax, edx
shr eax, 0x1f
lea ecx, [edx + eax + 4]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov esi, eax
test eax, eax
jne 0x401173
pop esi
or eax, 0xffffffff
pop ebp
ret
xor ecx, ecx
push edi
test ebp, ebp
jle 0x401200
mov edi, dword [esp + 0x10]
push ebx
xor edx, edx
mov dl, byte [ecx + edi]
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x401197
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
inc ecx
shl edx, 8
cmp ecx, ebp
jge 0x4011a6
xor ebx, ebx
mov bl, byte [ecx + edi]
add edx, ebx
mov ebx, edx
inc ecx
sar ebx, 0x12
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], bl
mov ebx, edx
sar ebx, 0xc
and ebx, 0x3f
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], bl
mov ebx, edx
sar ebx, 6
and ebx, 0x3f
and edx, 0x3f
cmp ecx, ebp
mov bl, byte [ebx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], bl
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], dl
jle 0x4011ed
mov byte [esi + 3], 0x3d
lea edx, [ebp + 1]
cmp ecx, edx
jle 0x4011f8
mov byte [esi + 2], 0x3d
add esi, 4
cmp ecx, ebp
jl 0x401183
pop ebx
mov ecx, dword [esp + 0x18]
mov byte [esi], 0
mov edi, eax
mov dword [ecx], eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
pop esi
mov eax, ecx
pop ebp
ret

Function at 0x401220
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
inc ebx
push ebx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, ebx
mov ebp, eax
mov eax, ecx
mov edi, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
xor eax, eax
test ebx, ebx
rep movsb byte es:[edi], byte [esi]
jle 0x40126c
mov cl, byte [eax + ebp]
xor cl, 0x19
sub cl, 0x7a
mov byte [eax + ebp], cl
inc eax
cmp eax, ebx
jl 0x40125b
lea edx, [esp + 0x14]
push edx
push ebx
push ebp
call fcn.00401140
push ebp
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [esp + 0x24]
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x401300
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x402408
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x14]
push esi
push edi
mov esi, ecx
push eax
push 0x66
mov dword [esp + 0x10], esi
call sub.MFC42.DLL_CDialog::CDialog
xor eax, eax
mov dword [esi], 0x403518
mov dword [esp + 0x14], eax
mov dword [esi + 0x60], eax
call sub.MFC42.DLL_AfxGetModuleState
push 0x80
push 0xe
push 0x80
call sub.MFC42.DLL_AfxFindResourceHandle
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x40434c
push 0x104
mov dword [esi + 0x64], eax
mov dword [esi + 0x60], 0x226d
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x40434c
push 0x404248
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x404074
push 0x404248
call edi
mov ecx, dword [str.Config.ini]
push ecx
push 0x404248
call edi
mov ecx, dword [esp + 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 4
Function at 0x401b40
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x300
push ebx
push ebp
push esi
mov esi, dword [esp + 0x310]
push edi
push 6
push str.Login:
push esi
call dword [sym.imp.MSVCRT.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x401c3a
mov edi, dword [sym.imp.MSVCRT.dll_strchr]
push 0x3a
push esi
call edi
mov esi, eax
push 0x40
inc esi
push esi
call edi
mov ebx, eax
add esp, 0x10
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x110]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov byte [ebx], 0
push 0x404248
rep stosd dword es:[edi], eax
lea eax, [esp + 0x114]
push 0x100
push eax
push 0
push str.USERPASS
push esi
call ebp
lea ecx, [esp + 0x110]
inc ebx
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x401c3a
push 0x404248
lea edx, [esp + 0x14]
push 0x100
push edx
mov ecx, 0x40
lea edi, [esp + 0x1c]
push eax
push str.date
rep stosd dword es:[edi], eax
push esi
call ebp
lea eax, [esp + 0x210]
push eax
call fcn.00401640
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + 0x214]
push ecx
call edi
lea edx, [esp + 0x18]
mov ebx, eax
push edx
call edi
add esp, 0xc
cmp ebx, eax
jg 0x401c3a
mov eax, dword [esp + 0x318]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x300
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x300
ret
Function at 0x401440
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x406c2b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x198
lea eax, [esp + 8]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 4]
mov dword [esp + 0x1a0], 0
push ecx
push 0x10
lea ecx, [esp + 8]
mov dword [esp + 0xc], 0x10
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov edx, dword [esp]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4014ed
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x4014ed
push esi
mov esi, dword [eax]
lea ecx, [esp + 4]
mov dword [esp + 0x1a4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
pop esi
mov ecx, dword [esp + 0x198]
mov dword fs:[0], ecx
add esp, 0x1a4
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
lea ecx, [esp]
mov dword [esp + 0x1a0], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x198]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x1a4
ret
Function at 0x4021f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
sub esp, 0x114
push ebx
push ebp
push esi
xor ebx, ebx
push edi
push ebx
call sub.MFC42.DLL_AfxSocketInit
test eax, eax
jne 0x402211
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov edi, 0x738c70
or ecx, 0xffffffff
xor eax, eax
push pe_nt_image_headers32
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x130]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x738c70
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0x28]
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x12c]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call sub.WS2_32.dll_gethostname
test eax, eax
je 0x40227f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x114
ret
lea ecx, [esp + 0x24]
push ecx
call sub.WS2_32.dll_gethostbyname
mov ebp, eax
test ebp, ebp
jne 0x4022a0
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x4022ed
mov eax, dword [esp + 0x10]
xor esi, esi
movsx ecx, word [ebp + 0xa]
mov esi, dword [edx + esi]
mov edx, ecx
lea edi, [esp + 0x18]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp ebx, dword [esp + 0x134]
jne 0x4022da
mov eax, dword [esp + 0x18]
push eax
call sub.WS2_32.dll_inet_ntoa
mov edx, dword [ebp + 0xc]
inc ebx
lea esi, [ebx*4]
cmp dword [esi + edx], 0
jne 0x4022ae
jmp 0x4022f1
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x130]
test ecx, ecx
je 0x4022fe
mov dword [ecx], ebx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x12c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x128]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x114
ret
Function at 0x4024b0
Capabilities:
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x406d50
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea ecx, [esp + 4]
call fcn.00403ad0
lea ecx, [esp]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString_1
push str.SoftwareEchoBirdHKDVR
push closesocket
lea ecx, [esp + 0xc]
mov byte [esp + 0x20], 1
call fcn.00403b80
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push str.WorkDir
call fcn.00403bc0
test eax, eax
jne 0x40255a
mov ecx, dword [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00403b10
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.00403b60
push 0xffffffffffffffff
lea ecx, [esp + 4]
call sub.MFC42.DLL_CString::ReleaseBuffer
lea ecx, [esp]
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 4]
mov dword [esp + 0x18], 0xffffffff
call fcn.00403b10
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x4025a0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x40
push ebx
push esi
push edi
call fcn.00403a70
mov edi, dword [esp + 0x50]
mov edx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
cmp dx, 0x804
rep movsb byte es:[edi], byte [esi]
je 0x402604
cmp dx, 0x1004
je 0x402604
cmp dx, 0x404
je 0x4025f9
cmp dx, 0xc04
je 0x4025f9
lea edx, [esp + 0xc]
mov edi, str.Language0009.ini
jmp 0x40260d
lea edx, [esp + 0xc]
mov edi, str.Language0404.ini
jmp 0x40260d
lea edx, [esp + 0xc]
mov edi, str.Language0804.ini
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0xc]
push ecx
push 0xff
push 0x40a258
push 0
push edx
push str.String_Table
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x402672
mov edi, 0x738c70
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40a258
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 0x40a258
pop ebx
add esp, 0x40
ret
Function at 0x402c10
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x220
mov ecx, 0x3f
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x12c]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, 0x3f
xor eax, eax
mov edi, 0x40a158
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x230]
stosw word es:[edi], ax
push ecx
push 0x409b30
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x138]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x2c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.HKDVR.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push 0xff
push 0x40a158
lea ecx, [esp + 0x18]
push 0
push ecx
push 0x409b20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x402d19
mov edi, 0x738c70
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40a158
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 0x40a158
pop ebx
add esp, 0x220
ret
Function at 0x403920
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x320
mov ecx, 0x3f
xor eax, eax
lea edx, [esp]
push ebx
push esi
push edi
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x22c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov edi, str.iLang
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x22c]
push ecx
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esp + 0x22c]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x2c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.DVRFace.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x2c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x130]
push 0xff
push ecx
push 0
lea edx, [esp + 0x1c]
push edx
push str.String_Table
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x403a4a
mov edi, 0x738c70
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x12c]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
or eax, 0xffffffff
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x320
ret
lea ecx, [esp + 0x12c]
push ecx
call dword [sym.imp.MSVCRT.dll_atoi]
add esp, 4
dec eax
jns 0x403a61
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x320
ret

Function at 0x403bc0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0xd0
test eax, eax
jne 0x403bdb
mov eax, 1
add esp, 0xd0
ret 8
lea ecx, [esp]
push esi
push ecx
lea edx, [esp + 0x10]
lea ecx, [esp + 0xc]
push edx
mov edx, dword [esp + 0xe0]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x1c], 0xc8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov esi, eax
test esi, esi
jne 0x403c1b
mov ecx, dword [esp + 0xdc]
lea eax, [esp + 0xc]
push eax
call sub.MFC42.DLL_CString::operator
mov eax, esi
pop esi
add esp, 0xd0
ret 8
Function at 0x403c30
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
jne 0x403c45
mov eax, 1
add esp, 8
ret 8
lea ecx, [esp]
lea edx, [esp + 0xc]
push ecx
lea ecx, [esp + 8]
push edx
mov edx, dword [esp + 0x14]
push ecx
push 0
push edx
push eax
mov dword [esp + 0x18], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x403c78
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
add esp, 8
ret 8

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

Disassembly:
mov eax, 0x2810
call fcn.00406900
mov edx, dword [esp + 0x2820]
push ebx
push ebp
push esi
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, edx
mov ebx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x20]
mov eax, ecx
mov esi, edi
mov edi, ebp
mov edx, dword [esp + 0x282c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov word [esp + 0x14], 2
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0x12], ax
mov eax, dword [esp + 0x2828]
lea ecx, [esp + 0x10]
push 0x10
push ecx
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x282c]
push 0
lea edx, [esp + 0x2c]
push ebx
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2810
ret
Function at 0x405a40
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10c
lea eax, [esp + 8]
push ebp
push esi
push edi
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
add ecx, 0xfffffffe
mov al, 0x5c
cmp byte [esp + ecx + 0x14], al
je 0x405a80
test ecx, ecx
jl 0x405a80
mov dl, byte [esp + ecx + 0x13]
dec ecx
cmp dl, al
jne 0x405a73
cmp ecx, 0xffffffff
je 0x405a8a
mov byte [esp + ecx + 0x15], 0
mov edi, str.UPnp.dat
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push eax
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x80
push 2
mov ecx, ebp
push eax
push eax
and ecx, 3
lea eax, [esp + 0x28]
push 0x40000000
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405b42
mov ecx, dword [0x738c84]
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea edx, [esp + 0x10]
push 0
push edx
lea eax, [esp + 0x14]
push 4
push eax
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], 0
call ebp
mov eax, dword [esp + 0xc]
xor esi, esi
test eax, eax
jle 0x405b3b
test esi, esi
jl 0x405b23
cmp esi, dword [0x738c84]
jge 0x405b23
mov ecx, dword [0x738c80]
mov eax, dword [ecx + esi*4]
jmp 0x405b25
xor eax, eax
lea edx, [esp + 0x10]
push 0
push edx
push 0x22
push eax
push edi
call ebp
mov eax, dword [esp + 0xc]
inc esi
cmp esi, eax
jl 0x405b0c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret
Function at 0x402e00
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404540
test esi, esi
jne 0x402e36
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404630
jmp 0x402e54
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402d14
mov edi, eax
test esi, esi
je 0x402e54
cmp dword [ebx], 0
je 0x402e54
dec esi
jmp 0x402e3d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40359c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4d6024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403634
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403614
xor eax, eax
push ebp
push 0x40360d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403650
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403614
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x4d6024]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4d6024], ax
mov esp, ebp
pop ebp
ret

Function at 0x404340
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4d904c], 0
je 0x4043a1
cmp word [0x4d9220], 0xd7b2
jne 0x404369
cmp dword [0x4d9228], 0
jbe 0x404369
mov eax, 0x4d921c
call dword [0x4d9238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x4d6070
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x4043c8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4d6034], 0
jne 0x4043bd
push 0
push 0x4d6068
push 0x4d6070
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4044f4
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402a70
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x4d904d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x4044bc
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc