joyce8/EMBER2024-capa huggingface dataset:
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, 0x737324
or ecx, 0xffffffff
xor eax, eax
push 0x100
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, 0x737324
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 0x406cb0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
lea ecx, [esp + 4]
call fcn.00403a30
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.00403ae0
lea eax, [esp]
lea ecx, [esp + 4]
push eax
push str.WorkDir
call fcn.00403b20
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.00403a70
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 4]
call fcn.00403ac0
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.00403a70
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.004039d0
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 0x40a288
push 0
push edx
push str.String_Table
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x402672
mov edi, 0x737324
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x40a288
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, 0x40a288
pop ebx
add esp, 0x40
ret
Function at 0x402b50
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, 0x40a188
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 0x40a188
lea ecx, [esp + 0x18]
push 0
push ecx
push 0x409b20
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
jne 0x402c59
mov edi, 0x737324
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x40a188
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, 0x40a188
pop ebx
add esp, 0x220
ret
Function at 0x403880
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 0x4039aa
mov edi, 0x737324
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 0x4039c1
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x320
ret

Function at 0x403b20
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 0xd0
test eax, eax
jne 0x403b3b
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 0x403b7b
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 0x403b90
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [ecx + 4]
sub esp, 8
test eax, eax
jne 0x403ba5
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 0x403bd8
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov dword [ecx], edx
add esp, 8
ret 8

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

Disassembly:
mov eax, 0x2810
call fcn.00406860
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 0x4059a0
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 0x4059e0
test ecx, ecx
jl 0x4059e0
mov dl, byte [esp + ecx + 0x13]
dec ecx
cmp dl, al
jne 0x4059d3
cmp ecx, 0xffffffff
je 0x4059ea
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 0x405aa2
mov ecx, dword [0x737334]
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 0x405a9b
test esi, esi
jl 0x405a83
cmp esi, dword [0x737334]
jge 0x405a83
mov ecx, dword [0x737330]
mov eax, dword [ecx + esi*4]
jmp 0x405a85
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 0x405a6c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
add esp, 0x10c
ret
Function at 0x409888
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40892a
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop edx
call fcn.00408953
add eax, edi
xor dword [ecx], edx
add edi, 0x42da67c1
or edi, eax
inc ecx
sub eax, 1
sub eax, 0x5946e60e
cmp ecx, ebx
jne fcn.0040892a
ret
Function at 0x402ed5
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x402ee4
pop dword [ebp - 0x48]
mov eax, 0x402ee4
sub dword [ebp - 0x48], eax
mov dword [ebp - 0x58], 0x3fbd88b3
add dword [ebp - 0x58], 0xe94bc98
mov dword [ebp - 0x54], 0xd6e9ed74
sub dword [ebp - 0x54], 0xa4b6a12f
mov dword [ebp - 0x50], 0x3585216b
add dword [ebp - 0x50], 0x16c722c3
mov dword [ebp - 0x4c], 0xfdc6ed20
add dword [ebp - 0x4c], 0x23912e0
lea eax, [ebp - 0x58]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x48]
call dword [eax]
mov dword [ebp - 0x58], 0xcd1532ae
sub dword [ebp - 0x58], 0x58a2c958
mov dword [ebp - 0x54], 0xab647e02
add dword [ebp - 0x54], 0x9607e373
mov dword [ebp - 0x50], 0x9dae60fe
add dword [ebp - 0x50], 0xc5c10b6e
mov dword [ebp - 0x4c], 0x346a6fe9
add dword [ebp - 0x4c], 0xcb959017
lea ebx, [ebp - 0x58]
push ebx
push eax
mov eax, 0x3ee5aa95
sub eax, 0x3ea52995
add eax, dword [ebp - 0x48]
call dword [eax]
push 0x40
push 0x1000
push 0x3970f
push 0
call eax
mov ecx, 0xb3229830
add ecx, 0x4cddb96f
mov esi, eax
mov edx, 0x98449162
add edx, 0x6802529e
add edx, dword [ebp - 0x48]
mov edi, 0x308771b2
add edi, 0x514fae32
xor dword [ebp - 0x2c], 0xa718579
mov ebx, dword [edx]
xor dword [ebp - 0x24], edi
xor ebx, edi
add dword [ebp - 0x24], 0x764d23f8
mov dword [esi], ebx
xor dword [ebp - 0x3c], 0x20bd3f30
add esi, 0xd3ff206d
add esi, 0x2c00df97
add edx, 0xfeec9a8d
sub edx, 0xfeec9a89
loop 0x402ffc
add eax, 0xecbd07a4
add eax, 0x134431ab
mov ebx, eax
add eax, 5
mov ecx, 0xef1bc32
sub ecx, 0xeb1bc32
add ecx, dword [ebp - 0x48]
call ebx
leave
ret

Function at 0x40317b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
cmp eax, esi
jl 0x4031a6
mov ecx, dword [0x42a298]
push esi
add eax, ecx
push esi
push eax
mov dword [0x418ed4], eax
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_SetFilePointer]
push 4
call fcn.00403283
cmp eax, esi
jl 0x40327d
lea eax, [ebp + 8]
push 4
push eax
push dword [0x40a01c]
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp + 8]
add dword [0x418ed4], 4
call fcn.00403283
mov ebx, eax
cmp ebx, esi
jl 0x40327b
cmp dword [ebp + 0x10], esi
jne 0x403249
cmp dword [ebp + 8], esi
jle 0x40327b
mov esi, 0x414ed0
cmp dword [ebp + 8], 0x4000
mov eax, dword [ebp + 8]
jl 0x40320b
mov eax, 0x4000
push eax
push esi
push dword [0x40a01c]
mov dword [ebp - 4], eax
call fcn.00402ed5
test eax, eax
je 0x40326d
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call fcn.00402ed5
test eax, eax
je 0x403245
mov eax, dword [ebp - 4]
sub dword [ebp + 8], eax
add dword [0x418ed4], eax
add ebx, eax
cmp dword [ebp + 8], 0
jg 0x4031fa
jmp 0x40327b
push 0xfffffffffffffffe
jmp 0x40326f
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x403254
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push esi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a01c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
jne 0x403272
push 0xfffffffffffffffd
pop eax
jmp 0x40327d
mov ebx, dword [ebp - 4]
add dword [0x418ed4], ebx
mov eax, ebx
pop esi
pop ebx
leave
ret 0x10
Function at 0x1000f4b8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
pushal
call 0x1000f4c7
pop dword [ebp - 0x30]
mov eax, 0xcb0ce715
add eax, 0x44f40db2
sub dword [ebp - 0x30], eax
push 0x40
push 0x1000
push 0x34d6c
push 0
mov eax, 0xbcec508e
add eax, 0x5314afb6
add eax, dword [ebp - 0x30]
call dword [eax]
mov ecx, 0xf8956159
sub ecx, 0xf8952238
xor edi, edi
add edi, eax
mov esi, 0xce4c94e6
add esi, 0x41b5031a
add esi, dword [ebp - 0x30]
mov ebx, 0xd9b339d1
mov edx, dword [esi]
sub dword [ebp - 0x14], esi
xor edx, ebx
sub dword [ebp - 0x14], 0xb6357313
mov dword [edi], edx
add dword [ebp - 0x28], 0xf0567a8d
add edi, 0x60db50a3
add edi, 0x9f24af61
add esi, 0xc802a196
add esi, 0x37fd5e6e
loop 0x1000f522
add eax, 0xcc04e6be
sub eax, 0xcc03f767
mov ebx, eax
add eax, 0xc7900a77
add eax, 0x386ff58e
mov ecx, 0x10000000
add ecx, dword [ebp - 0x30]
call ebx
leave
ret
Function at 0x4148a0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a527b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00499845
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x414922
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00497490
mov eax, dword [eax]
push 0x4d9cc8
push eax
call fcn.004885c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00499ad0
test bl, bl
je 0x414922
push 0x4d9cc8
lea ecx, [esp + 0xc]
call fcn.00499e60
push 0x4d9cd4
lea ecx, [esp + 0xc]
call fcn.00499e60
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x41495e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00499ad0
jmp 0x414a29
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x4149e2
lea edx, [esp + 0x7c]
push 0x4d9cd0
push edx
call fcn.004885c4
add esp, 8
test eax, eax
je 0x4149e2
lea eax, [esp + 0x7c]
push 0x4d9ccc
push eax
call fcn.004885c4
add esp, 8
test eax, eax
je 0x4149e2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x414972
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00499ad0
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x415230
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x415292
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc